summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbtbnl <jbtbnl@users.noreply.github.com>2014-08-29 18:31:06 +0200
committerjbtbnl <jbtbnl@users.noreply.github.com>2014-08-29 18:31:06 +0200
commit9b1c4a1e74bc1f63b26d71f735c5c1c371df0444 (patch)
tree85d65adcc751e0954de5534da51e917bbd1a7cf8
parent35276def1c36f749d9ac557150a24d021b7ca672 (diff)
parent0aede0f413f8edd622457f41942eb410d8696924 (diff)
downloadnextcloud-server-9b1c4a1e74bc1f63b26d71f735c5c1c371df0444.tar.gz
nextcloud-server-9b1c4a1e74bc1f63b26d71f735c5c1c371df0444.zip
Merge pull request #10738 from owncloud/fix-quotabar-width
Fix quota bar width, and indicate almost full storage
-rw-r--r--core/css/styles.css9
-rw-r--r--settings/templates/personal.php3
2 files changed, 10 insertions, 2 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index 7e41e904127..08ffaa72e10 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -736,9 +736,16 @@ 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;
+ min-width: 1%;
+ max-width: 100%;
+}
#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 661c242ea6b..c1fb20dce05 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -34,7 +34,8 @@
<div id="quota" class="section">
- <div style="width:<?php p($_['usage_relative']);?>%;">
+ <div style="width:<?php p($_['usage_relative']);?>%"
+ <?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>>
<p id="quotatext">
<?php print_unescaped($l->t('You have used <strong>%s</strong> of the available <strong>%s</strong>',
array($_['usage'], $_['total_space'])));?>