mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-23 04:52:00 +00:00
Standardise team label width
This commit is contained in:
parent
4b2cfa6f0f
commit
b56a9a4aad
2 changed files with 17 additions and 9 deletions
|
@ -12,18 +12,18 @@ var SelectPlayerButton = React.createClass({
|
|||
let button;
|
||||
if (this.props.gatherer.leader) {
|
||||
button = <button
|
||||
className="btn btn-xs btn-default"
|
||||
className="btn btn-xs btn-default team-label"
|
||||
data-disabled="true">Leader</button>;
|
||||
} else if (this.props.gatherer.team !== "lobby") {
|
||||
button = <button
|
||||
data-disabled="true"
|
||||
className="btn btn-xs btn-default"> {this.props.gatherer.team}
|
||||
className="btn btn-xs btn-default team-label"> {_.capitalize(this.props.gatherer.team)}
|
||||
</button>;
|
||||
} else {
|
||||
button = <button
|
||||
onClick={this.selectPlayer}
|
||||
value={this.props.gatherer.id}
|
||||
className="btn btn-xs btn-primary"> Select
|
||||
className="btn btn-xs btn-primary team-label"> Select
|
||||
</button>;
|
||||
}
|
||||
return button;
|
||||
|
@ -717,9 +717,11 @@ var Gatherers = React.createClass({
|
|||
);
|
||||
} else {
|
||||
if (gatherer.leader) {
|
||||
action = (<span className="label label-default">Leader</span>);
|
||||
action = (<span className="label label-primary team-label">Leader</span>);
|
||||
} else if (gatherer.team !== "lobby") {
|
||||
action = (<span className="label label-primary">{_.capitalize(gatherer.team)}</span>);
|
||||
action = (<span className="label label-primary team-label">{_.capitalize(gatherer.team)}</span>);
|
||||
} else {
|
||||
action = (<span className="label label-default team-label">Lobby</span>);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,16 @@ html, body {
|
|||
|
||||
/*Gather Styles*/
|
||||
|
||||
.vote-button {
|
||||
min-width: 60px;
|
||||
}
|
||||
|
||||
.team-label {
|
||||
min-width: 70px;
|
||||
display: inline-block;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.lifeform-icon {
|
||||
width: 20px;
|
||||
margin: 0 3px;
|
||||
|
@ -127,7 +137,3 @@ html, body {
|
|||
.panel-light-background {
|
||||
background-color: #d9edf7;
|
||||
}
|
||||
|
||||
.vote-button {
|
||||
min-width: 60px;
|
||||
}
|
Loading…
Reference in a new issue