From c241bb3416eb2d7bcd4752e1ee685b6bdda90525 Mon Sep 17 00:00:00 2001 From: zhangweiwu Date: Mon, 4 Jul 2005 17:23:39 +0000 Subject: [PATCH] enhancement to the narrow_column style class so that it makes a column as narrow as possible without line-breaking its content. This is a good replacement for simple WIDTH="1%" and also helps avoiding line-breaking Chinese, Japanese and Korean text incorrectly. A similar method is explained in this message as reference: http://lists.evolt.org/archive/Week-of-Mon-20021014/124859.html Talked with Pim and tested on IE/gecko/opera8.0. for older browsers doesn't understand CSS2 it behave the same as WIDTH="1%". --- phpgwapi/templates/edge-it/css.tpl | 2 +- phpgwapi/templates/idots/css.tpl | 2 +- phpgwapi/templates/idots2/css.tpl | 2 +- phpgwapi/templates/idsociety/css.tpl | 2 +- phpgwapi/templates/jerryr/css.tpl | 2 +- phpgwapi/templates/literati/css.tpl | 2 +- phpgwapi/templates/prisma/css.tpl | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/phpgwapi/templates/edge-it/css.tpl b/phpgwapi/templates/edge-it/css.tpl index 7ded352faf..ed287159fd 100755 --- a/phpgwapi/templates/edge-it/css.tpl +++ b/phpgwapi/templates/edge-it/css.tpl @@ -3,7 +3,7 @@ .row_on { color: {row_text}; background-color: {row_on}; } .row_off { color: {row_text}; background-color: {row_off}; } .th { color: {th_text}; background-color: {th_bg}; } - .narrow_column { width: 6em; } + .narrow_column { width: 1%; white-space: nowrap; } {app_css} --> diff --git a/phpgwapi/templates/idots/css.tpl b/phpgwapi/templates/idots/css.tpl index eec1972bd1..1e679bc6f6 100755 --- a/phpgwapi/templates/idots/css.tpl +++ b/phpgwapi/templates/idots/css.tpl @@ -3,7 +3,7 @@ .row_on { color: {row_text}; background-color: #F1F1F1; } .row_off { color: {row_text}; background-color: #ffffff; } .th { color: {th_text}; background-color: {th_bg}; } - .narrow_column { width: 6em; } + .narrow_column { width: 1%; white-space: nowrap; } {app_css} #dhtmltooltip diff --git a/phpgwapi/templates/idots2/css.tpl b/phpgwapi/templates/idots2/css.tpl index 7ded352faf..ed287159fd 100755 --- a/phpgwapi/templates/idots2/css.tpl +++ b/phpgwapi/templates/idots2/css.tpl @@ -3,7 +3,7 @@ .row_on { color: {row_text}; background-color: {row_on}; } .row_off { color: {row_text}; background-color: {row_off}; } .th { color: {th_text}; background-color: {th_bg}; } - .narrow_column { width: 6em; } + .narrow_column { width: 1%; white-space: nowrap; } {app_css} --> diff --git a/phpgwapi/templates/idsociety/css.tpl b/phpgwapi/templates/idsociety/css.tpl index 637ad8d53c..9dabb28cb1 100755 --- a/phpgwapi/templates/idsociety/css.tpl +++ b/phpgwapi/templates/idsociety/css.tpl @@ -8,7 +8,7 @@ .row_on { color: {row_text}; background-color: {row_on}; } .row_off { color: {row_text}; background-color: {row_off}; } .th { color: {th_text}; background-color: {th_bg}; } - .narrow_column { width: 6em; } + .narrow_column { width: 1%; white-space: nowrap; } .tablink { color: #000000; } {app_css} --> diff --git a/phpgwapi/templates/jerryr/css.tpl b/phpgwapi/templates/jerryr/css.tpl index 7ded352faf..ed287159fd 100755 --- a/phpgwapi/templates/jerryr/css.tpl +++ b/phpgwapi/templates/jerryr/css.tpl @@ -3,7 +3,7 @@ .row_on { color: {row_text}; background-color: {row_on}; } .row_off { color: {row_text}; background-color: {row_off}; } .th { color: {th_text}; background-color: {th_bg}; } - .narrow_column { width: 6em; } + .narrow_column { width: 1%; white-space: nowrap; } {app_css} --> diff --git a/phpgwapi/templates/literati/css.tpl b/phpgwapi/templates/literati/css.tpl index 7ded352faf..ed287159fd 100755 --- a/phpgwapi/templates/literati/css.tpl +++ b/phpgwapi/templates/literati/css.tpl @@ -3,7 +3,7 @@ .row_on { color: {row_text}; background-color: {row_on}; } .row_off { color: {row_text}; background-color: {row_off}; } .th { color: {th_text}; background-color: {th_bg}; } - .narrow_column { width: 6em; } + .narrow_column { width: 1%; white-space: nowrap; } {app_css} --> diff --git a/phpgwapi/templates/prisma/css.tpl b/phpgwapi/templates/prisma/css.tpl index 837909d62a..eeaa5a2523 100755 --- a/phpgwapi/templates/prisma/css.tpl +++ b/phpgwapi/templates/prisma/css.tpl @@ -3,7 +3,7 @@ .row_on { color: {row_text}; background-color: {row_on}; } .row_off { color: {row_text}; background-color: {row_off}; } .th { color: {th_text}; background-color: {th_bg}; } - .narrow_column { width: 6em; } + .narrow_column { width: 1%; white-space: nowrap; } {app_css} -->