Fix quota nav item

- Spacing was not correctly set

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-07-18 13:25:10 +02:00
parent 929aaaa129
commit 0703d0fc6b
6 changed files with 35 additions and 47 deletions

View file

@ -984,30 +984,26 @@ table.dragshadow td.size {
margin-right: 4px;
}
#quota {
.quota-navigation-item {
margin: 0 !important;
border: none;
border-radius: 0;
background-color: transparent;
z-index: 1;
height: 44px;
display: flex !important;
flex-direction: column;
}
#quota > a[href="#"], #quota > a[href="#"] * {
.quota-navigation-item__text {
height: 30px;
}
.quota-navigation-item[href="#"], .quota-navigation-item[href="#"] * {
cursor: default !important;
}
#quota .quota-container {
.quota-navigation-item__container {
height: 5px;
border-radius: var(--border-radius);
}
#quota .quota-container div {
height: 100%;
background-color: var(--color-primary);
}
#quotatext {
padding: 0;
height: 30px;
line-height: 30px;
}
/* GRID */
#filestable.view-grid:not(.hidden) {

File diff suppressed because one or more lines are too long

View file

@ -886,37 +886,33 @@ table.dragshadow td.size {
}
}
#quota {
.quota-navigation-item {
margin: 0 !important;
border: none;
border-radius: 0;
background-color: transparent;
z-index:1;
height: 44px;
display: flex !important;
flex-direction: column;
> a[href='#'] {
&__text {
height: 30px;
}
&[href='#'] {
// if no link is set, no mouse feedback
&, * {
cursor: default !important;
}
}
.quota-container {
&__container {
height: 5px;
border-radius: var(--border-radius);
div {
height: 100%;
background-color: var(--color-primary);
}
}
}
#quotatext {
padding: 0;
height: 30px;
line-height: 30px;
}
/* GRID */
#filestable.view-grid:not(.hidden) {
$grid-size: 160px;

View file

@ -984,30 +984,26 @@ table.dragshadow td.size {
margin-right: 4px;
}
#quota {
.quota-navigation-item {
margin: 0 !important;
border: none;
border-radius: 0;
background-color: transparent;
z-index: 1;
height: 44px;
display: flex !important;
flex-direction: column;
}
#quota > a[href="#"], #quota > a[href="#"] * {
.quota-navigation-item__text {
height: 30px;
}
.quota-navigation-item[href="#"], .quota-navigation-item[href="#"] * {
cursor: default !important;
}
#quota .quota-container {
.quota-navigation-item__container {
height: 5px;
border-radius: var(--border-radius);
}
#quota .quota-container div {
height: 100%;
background-color: var(--color-primary);
}
#quotatext {
padding: 0;
height: 30px;
line-height: 30px;
}
/* GRID */
#filestable.view-grid:not(.hidden) {

File diff suppressed because one or more lines are too long

View file

@ -11,16 +11,16 @@
<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
<li id="quota" class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?>">
<a href="#" class="icon-quota svg">
<p id="quotatext"><?php p($l->t('%s used', [$_['usage']])); ?></p>
<a href="#" class="icon-quota svg quota-navigation-item">
<p id="quotatext" class="quota-navigation-item__text"><?php p($l->t('%s used', [$_['usage']])); ?></p>
</a>
</li>
<?php else: ?>
<li id="quota" class="has-tooltip pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?>"
title="<?php p($l->t('%s%% of %s used', [$_['usage_relative'], $_['total_space']])); ?>">
<a href="#" class="icon-quota svg">
<p id="quotatext"><?php p($l->t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); ?></p>
<div class="quota-container">
<a href="#" class="icon-quota svg quota-navigation-item">
<p id="quotatext" class="quota-navigation-item__text"><?php p($l->t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); ?></p>
<div class="quota-navigation-item__container">
<progress value="<?php p($_['usage_relative']); ?>" max="100" class="<?= ($_['usage_relative'] > 80) ? 'warn' : '' ?>"></progress>
</div>
</a>