feat(quota): enhance QuotaSection with improved view mode handling and refresh functionality

- Introduced effective view mode logic to manage 'paged' and 'all' views based on file count.
- Added a warning for too many files when in 'all' view, prompting users to switch to 'paged'.
- Updated refresh button to handle loading states more effectively and provide clearer user feedback.
- Enhanced UI with new translations for view modes and refresh actions.
- Adjusted styles for better alignment and spacing in the view mode toggle and refresh button.
This commit is contained in:
moxi
2026-01-04 00:45:34 +08:00
parent 334d75f2dd
commit 38a3e20427
4 changed files with 71 additions and 25 deletions

View File

@@ -132,10 +132,15 @@
.viewModeToggle {
display: flex;
gap: 8px;
background-color: var(--bg-secondary);
padding: 4px;
border-radius: $radius-md;
gap: $spacing-xs;
align-items: center;
}
.refreshButtonContent {
display: inline-flex;
align-items: center;
gap: $spacing-xs;
white-space: nowrap;
}
.antigravityCard {
@@ -379,4 +384,4 @@
font-size: 14px;
line-height: 1.6;
}
}
}