This commit is contained in:
cc
2026-05-01 14:46:14 +08:00
parent d53ddb0ba7
commit 4a57a503f5
7 changed files with 30 additions and 2 deletions

View File

@@ -11,8 +11,7 @@
.export-date-range-dialog {
width: min(480px, calc(100vw - 32px));
max-height: calc(100vh - 64px);
overflow-y: auto;
max-height: calc(100vh - 80px);
border-radius: 16px;
border: 1px solid var(--border-color);
background: var(--bg-secondary-solid, var(--bg-primary));
@@ -21,12 +20,14 @@
flex-direction: column;
gap: 10px;
box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
overflow: hidden;
}
.export-date-range-dialog-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
h4 {
margin: 0;
@@ -35,6 +36,26 @@
}
}
.export-date-range-dialog-content {
flex: 1 1 0;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
gap: 10px;
padding-right: 2px;
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
}
}
.export-date-range-dialog-close-btn {
border: 1px solid var(--border-color);
background: var(--bg-secondary);
@@ -439,6 +460,7 @@
display: flex;
justify-content: flex-end;
gap: 8px;
flex-shrink: 0;
}
.export-date-range-dialog-btn {

View File

@@ -565,6 +565,7 @@ export function ExportDateRangeDialog({
</button>
</div>
<div className="export-date-range-dialog-content">
<div className="export-date-range-preset-list">
{EXPORT_DATE_RANGE_PRESETS.map((preset) => {
const active = isPresetActive(preset.value)
@@ -728,6 +729,7 @@ export function ExportDateRangeDialog({
})}
</div>
</section>
</div>
<div className="export-date-range-dialog-actions">
<button type="button" className="export-date-range-dialog-btn secondary" onClick={onClose}>

View File

@@ -2015,6 +2015,7 @@
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
width: 480px;
max-width: 92vw;
max-height: calc(100vh - 80px);
display: flex;
flex-direction: column;
border: 1px solid var(--border-color);
@@ -2062,6 +2063,9 @@
display: flex;
flex-direction: column;
gap: 18px;
overflow-y: auto;
flex: 1;
min-height: 0;
}
}