From 37e267095166d4aa8c77b34e32dd265af33c70dd Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Tue, 1 Apr 2014 01:56:44 +0100 Subject: bitbake: toaster: Make tables happy in Chrome There is a known layout issue with Bootstrap tables in Chrome. This change applies a css fix for it, and changes the span classes in the variables table to improve formatting. (Bitbake rev: a7fee015b1cc34351d5ad8b854fc6bf368416400) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/css/default.css | 3 +++ bitbake/lib/toaster/toastergui/views.py | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index b4345da3d7..baf70fb234 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -109,6 +109,9 @@ select { width: auto; } .hero-unit > .close { font-size:40px; } .hero-actions { margin-top: 30px; } +/* make tables Chrome-happy (me, not so much) */ +#otable { table-layout: fixed; word-wrap: break-word; } + diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index ba69dd8b5d..e346ac4cf1 100644 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -1142,7 +1142,6 @@ def configvars(request, build_id): 'tablecols' : [ {'name': 'Variable', 'qhelp': "BitBake is a generic task executor that considers a list of tasks with dependencies and handles metadata that consists of variables in a certain format that get passed to the tasks", - 'dclass' : "span3", 'orderfield': _get_toggle_order(request, "variable_name"), 'ordericon':_get_toggle_order_icon(request, "variable_name"), }, @@ -1153,7 +1152,6 @@ def configvars(request, build_id): {'name': 'Set in file', 'qhelp': "The last configuration file that touched the variable value", 'clclass': 'file', 'hidden' : 0, - 'dclass': "span6", 'filter' : { 'class' : 'vhistory__file_name', 'label': 'Show:', @@ -1169,7 +1167,7 @@ def configvars(request, build_id): {'name': 'Description', 'qhelp': "A brief explanation of the variable", 'clclass': 'description', 'hidden' : 0, - 'dclass': "span5", + 'dclass': "span4", 'filter' : { 'class' : 'description', 'label': 'Show:', -- cgit v1.2.3-54-g00ecf