This commit is contained in:
tommy
2025-11-07 14:31:54 +08:00
parent 9157983772
commit f5629c8a2b
2 changed files with 65 additions and 47 deletions

View File

@@ -1468,10 +1468,25 @@
}
.ui-date-range-preview {
display: flex;
flex-direction: column;
gap: 0.25rem;
min-width: 0;
flex: 1 1 auto;
font-size: 0.85rem;
color: hsl(var(--muted-foreground));
}
.ui-date-range-footer {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
gap: 1rem;
width: 100%;
margin-top: 0.5rem;
}
.ui-date-range-shortcuts {
display: flex;
flex-wrap: wrap;
@@ -1483,8 +1498,8 @@
display: flex;
justify-content: flex-end;
gap: 0.5rem;
width: 100%;
margin-top: 0.5rem;
flex-shrink: 0;
margin-left: auto;
}
.ui-date-range-shortcut,

View File

@@ -282,13 +282,6 @@ pub fn DateRangePicker(
"本月"
}
}
div {
class: "ui-date-range-preview",
span { class: "ui-date-range-preview-primary", "{preview_primary_text}" }
for text in preview_secondary_text.iter() {
span { class: "ui-date-range-preview-secondary", "{text}" }
}
}
div {
class: "ui-date-range-calendars",
for offset in 0..2 {
@@ -371,6 +364,15 @@ pub fn DateRangePicker(
}
}
}
div {
class: "ui-date-range-footer",
div {
class: "ui-date-range-preview",
span { class: "ui-date-range-preview-primary", "{preview_primary_text}" }
for text in preview_secondary_text.iter() {
span { class: "ui-date-range-preview-secondary", "{text}" }
}
}
div {
class: "ui-date-range-controls",
Button {
@@ -417,4 +419,5 @@ pub fn DateRangePicker(
}
}
}
}
}