mirror of
https://github.com/immich-app/immich.git
synced 2025-11-26 18:49:44 +09:00
feat(web): responsive top navigation (#12373)
- icons fit in mobile - guarantee the search bar space in all screen sizes - fix the storage bar being too wide
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
$: hasQuota = $user?.quotaSizeInBytes !== null;
|
||||
$: availableBytes = (hasQuota ? $user?.quotaSizeInBytes : $serverInfo?.diskSizeRaw) || 0;
|
||||
$: usedBytes = (hasQuota ? $user?.quotaUsageInBytes : $serverInfo?.diskUseRaw) || 0;
|
||||
$: usedPercentage = Math.round((usedBytes / availableBytes) * 100);
|
||||
$: usedPercentage = Math.min(Math.round((usedBytes / availableBytes) * 100), 100);
|
||||
|
||||
let aboutInfo: ServerAboutResponseDto;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user