aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tipboard/tiles/text.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tipboard/tiles/text.js b/tipboard/tiles/text.js
index 457cc02..b0ce783 100644
--- a/tipboard/tiles/text.js
+++ b/tipboard/tiles/text.js
@@ -11,11 +11,12 @@ function updateTileText(id, data, meta, tipboard) {
var nodeWithText = containers[0];
$(nodeWithText).html(data['text']);
+ var textSelector = '#' + id + ' .text-container';
if (meta.font_size) {
- $('.text-container').css("font-size", meta.font_size);
+ $(textSelector).css("font-size", meta.font_size);
}
if (meta.font_color) {
- $('.text-container').css(
+ $(textSelector).css(
"color", Tipboard.DisplayUtils.replaceFromPalette(meta.font_color)
);
}