prevent wrapping in the middle of cardset names

This commit is contained in:
Andy Janata 2013-03-26 20:31:46 -07:00
parent c662bf954d
commit 660fd2d5f1
2 changed files with 10 additions and 5 deletions

View File

@ -571,6 +571,10 @@ span.debug, span.admin {
margin-right: 15px;
}
.scorecard_score, .scorecard_player{
.scorecard_score, .scorecard_player {
font-weight:700;
}
.nowrap {
white-space: nowrap;
}

View File

@ -96,10 +96,11 @@ cah.Game = function(id) {
var title = cardSet.getDescription() + ' ' + cardSet.getBlackCardCount() + ' black card'
+ (cardSet.getBlackCardCount() == 1 ? '' : 's') + ', ' + cardSet.getWhiteCardCount()
+ ' white card' + (cardSet.getWhiteCardCount() == 1 ? '' : 's') + '.';
var html = '<input type="checkbox" id="' + cardSetElementId + '" class="card_set" title="'
+ title + '" value="' + cardSet.getId() + '" name="card_set" /><label for="'
+ cardSetElementId + '" title="' + title + '" class="card_set_label">' + cardSet.getName()
+ '</label>';
// that space at the beginning matters
var html = ' <span class="nowrap"><input type="checkbox" id="' + cardSetElementId
+ '" class="card_set" title="' + title + '" value="' + cardSet.getId()
+ '" name="card_set" /><label for="' + cardSetElementId + '" title="' + title
+ '" class="card_set_label">' + cardSet.getName() + '</label></span>';
if (cardSet.isBaseDeck()) {
$(".base_card_sets", this.optionsElement_).append(html);
} else {