From 660fd2d5f13d782dd60e5248f59e3b2f1501b948 Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Tue, 26 Mar 2013 20:31:46 -0700 Subject: [PATCH] prevent wrapping in the middle of cardset names --- WebContent/cah.css | 6 +++++- WebContent/js/cah.game.js | 9 +++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/WebContent/cah.css b/WebContent/cah.css index 68ef803..d4b89a3 100644 --- a/WebContent/cah.css +++ b/WebContent/cah.css @@ -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; +} diff --git a/WebContent/js/cah.game.js b/WebContent/js/cah.game.js index d434234..18f9224 100644 --- a/WebContent/js/cah.game.js +++ b/WebContent/js/cah.game.js @@ -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 = ''; + // that space at the beginning matters + var html = ' '; if (cardSet.isBaseDeck()) { $(".base_card_sets", this.optionsElement_).append(html); } else {