diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-27 16:44:56 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-27 22:13:19 +0200 |
commit | f038ecbfe3f4a8d07948c3cd0bf26bd291d71885 (patch) | |
tree | 8512ab177bab34894b741204130e429c1b605035 | |
parent | f09a70e9b56a7f83857dad684cc4574a08db3421 (diff) | |
download | nextcloud-server-f038ecbfe3f4a8d07948c3cd0bf26bd291d71885.tar.gz nextcloud-server-f038ecbfe3f4a8d07948c3cd0bf26bd291d71885.zip |
Fixed quota on homepage (files)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | apps/files/templates/appnavigation.php | 7 | ||||
-rw-r--r-- | core/css/styles.scss | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index 09b02943688..6a7b4e4b11e 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -11,7 +11,7 @@ </a> </li> <?php } ?> - <li id="quota" class="section pinned <?php + <li id="quota" class="pinned <?php if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) { ?>has-tooltip" title="<?php p($_['usage_relative'] . '%'); } ?>"> @@ -23,9 +23,8 @@ p($l->t('%s used', [$_['usage']])); } ?></p> <div class="quota-container"> - <div style="width:<?php p($_['usage_relative']);?>%" - <?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>> - </div> + <progress value="<?php p($_['usage_relative']); ?>" max="100" + <?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>></progress> </div> </a> </li> diff --git a/core/css/styles.scss b/core/css/styles.scss index 4a47d192ef4..3b062250df4 100644 --- a/core/css/styles.scss +++ b/core/css/styles.scss @@ -925,7 +925,7 @@ code { font-family: 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', monospace; } -#quota { +#body-settings #quota { cursor: default; margin: 30px !important; position: relative; |