From 3ba66e33f8f2018350e96a807475960955f1e9c3 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 29 Aug 2014 16:31:43 +0200 Subject: set quota bar maximum to 100% to prevent overflow --- core/css/styles.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/css/styles.css b/core/css/styles.css index 7e41e904127..a632eb46585 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -736,7 +736,9 @@ code { font-family:"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono font-weight: normal; white-space: nowrap; border-bottom-left-radius: 3px; - border-top-left-radius: 3px; } + border-top-left-radius: 3px; + max-width: 100%; +} #quotatext {padding:.6em 1em;} .pager { list-style:none; float:right; display:inline; margin:.7em 13em 0 0; } -- cgit v1.2.3 From 41ace0391104ca7b65167d3bcee3b1960d21bb89 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 29 Aug 2014 16:46:08 +0200 Subject: color quota bar yellow for feedback if usage is over 90% --- settings/templates/personal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 661c242ea6b..33534e59f19 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -34,7 +34,8 @@
-
+

t('You have used %s of the available %s', array($_['usage'], $_['total_space'])));?> -- cgit v1.2.3 From 95382e994520966a71d56fb5113d8ed27ab5d8f6 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 29 Aug 2014 16:52:41 +0200 Subject: also add minimum width for quota bar so it’s apparent how it will look MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/css/styles.css | 1 + 1 file changed, 1 insertion(+) diff --git a/core/css/styles.css b/core/css/styles.css index a632eb46585..0d3b182ea41 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -737,6 +737,7 @@ code { font-family:"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono white-space: nowrap; border-bottom-left-radius: 3px; border-top-left-radius: 3px; + min-width: 1%; max-width: 100%; } #quotatext {padding:.6em 1em;} -- cgit v1.2.3 From 0aede0f413f8edd622457f41942eb410d8696924 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 29 Aug 2014 17:50:59 +0200 Subject: move hardcoded color to CSS class - for themeability --- core/css/styles.css | 4 ++++ settings/templates/personal.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 0d3b182ea41..08ffaa72e10 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -742,6 +742,10 @@ code { font-family:"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono } #quotatext {padding:.6em 1em;} +#quota div.quota-warning { + background-color: #fc4; +} + .pager { list-style:none; float:right; display:inline; margin:.7em 13em 0 0; } .pager li { display:inline-block; } diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 33534e59f19..c1fb20dce05 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -34,8 +34,8 @@

-
+
80): ?> class="quota-warning" >

t('You have used %s of the available %s', array($_['usage'], $_['total_space'])));?> -- cgit v1.2.3