mirror of
https://github.com/WonderAliceUwU/OmniArr.git
synced 2026-11-25 11:35:56 +00:00
feature: improve performance and add remaining storage
This commit is contained in:
1 parent
6f52dc2061
commit
84d255c9e6
7 files changed
+235
-8
No files matched your search
+108
-6
@@ -107,7 +107,8 @@ img {
|
||||
width: 5.75rem;
|
||||
padding: 1rem;
|
||||
overflow: hidden;
|
||||
transition: width 220ms ease;
|
||||
transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
will-change: width;
|
||||
filter: drop-shadow(0 1.4rem 2rem rgba(0, 0, 0, 0.34));
|
||||
}
|
||||
|
||||
@@ -295,6 +296,85 @@ img {
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.sidebar-disk {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
width: 2.9rem;
|
||||
min-width: 2.9rem;
|
||||
max-width: 2.9rem;
|
||||
overflow: hidden;
|
||||
padding: 0.525rem;
|
||||
}
|
||||
|
||||
.sidebar-disk-ring {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0.14rem;
|
||||
border-radius: 999px;
|
||||
background: conic-gradient(#ffffff var(--disk-progress), rgba(255, 255, 255, 0.14) 0);
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.sidebar-disk-icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 999px;
|
||||
background: #171a20;
|
||||
color: #e8edf8;
|
||||
}
|
||||
|
||||
.sidebar-disk-copy {
|
||||
display: grid;
|
||||
gap: 0.15rem;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
max-width: 0;
|
||||
overflow: hidden;
|
||||
transform: translateX(-0.2rem);
|
||||
transition: opacity 180ms ease, transform 180ms ease, max-width 180ms ease;
|
||||
}
|
||||
|
||||
.sidebar-disk-copy strong,
|
||||
.sidebar-disk-copy span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.sidebar-disk-copy strong {
|
||||
font-size: 0.84rem;
|
||||
}
|
||||
|
||||
.sidebar-disk-copy span {
|
||||
color: #9ba5b8;
|
||||
font-size: 0.74rem;
|
||||
}
|
||||
|
||||
.reiverr-sidebar:hover .sidebar-disk {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
justify-content: flex-start;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.reiverr-sidebar:hover .sidebar-disk-copy {
|
||||
opacity: 1;
|
||||
max-width: 12rem;
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.reiverr-sidebar:not(:hover) .sidebar-disk {
|
||||
justify-content: center;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.sidebar-avatar {
|
||||
width: 1.85rem;
|
||||
height: 1.85rem;
|
||||
@@ -412,6 +492,33 @@ img {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Keep footer controls on the same responsive alignment grid. */
|
||||
.sidebar-footer > .sidebar-disk,
|
||||
.sidebar-footer > .sidebar-settings {
|
||||
width: 2.9rem;
|
||||
min-width: 2.9rem;
|
||||
max-width: 2.9rem;
|
||||
margin-top: 0;
|
||||
padding: 0.525rem;
|
||||
}
|
||||
|
||||
.reiverr-sidebar:hover .sidebar-footer > .sidebar-disk,
|
||||
.reiverr-sidebar:hover .sidebar-footer > .sidebar-settings {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
justify-content: flex-start;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.reiverr-sidebar:not(:hover) .sidebar-footer > .sidebar-disk,
|
||||
.reiverr-sidebar:not(:hover) .sidebar-footer > .sidebar-settings {
|
||||
gap: 0;
|
||||
justify-content: center;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.reiverr-sidebar:not(:hover) .sidebar-link.active {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
@@ -422,11 +529,6 @@ img {
|
||||
min-width: 0;
|
||||
padding: calc(1rem - 1px) 0 1rem;
|
||||
margin-left: 5.75rem;
|
||||
transition: margin-left 220ms ease;
|
||||
}
|
||||
|
||||
.reiverr-app:has(.reiverr-sidebar:hover) .content-shell {
|
||||
margin-left: 15rem;
|
||||
}
|
||||
|
||||
.content-panel {
|
||||
|
||||
Reference in new issue
Block a user