🎛️ 精准调整日期间距
This commit is contained in:
@@ -98,11 +98,13 @@ const updatePart = (part: DatePart, value: string) => {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
.native-date-strip {
|
.native-date-strip {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
width: 100%;
|
width: max-content;
|
||||||
|
max-width: 100%;
|
||||||
min-height: 2.75rem;
|
min-height: 2.75rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0;
|
gap: 0;
|
||||||
|
padding-inline: 0.65ch;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
background: rgba(237, 244, 245, 0.52);
|
background: rgba(237, 244, 245, 0.52);
|
||||||
@@ -137,6 +139,7 @@ const updatePart = (part: DatePart, value: string) => {
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -150,18 +153,19 @@ const updatePart = (part: DatePart, value: string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.native-date-year {
|
.native-date-year {
|
||||||
width: 3.85rem;
|
width: 4.2ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.native-date-month,
|
.native-date-month,
|
||||||
.native-date-day {
|
.native-date-day {
|
||||||
width: 2.05rem;
|
width: 2.2ch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.native-date-separator {
|
.native-date-separator {
|
||||||
margin-inline: -0.1rem;
|
margin-inline: 0.35ch;
|
||||||
color: #789096;
|
color: #789096;
|
||||||
font-size: 0.95rem;
|
font-size: 0.95rem;
|
||||||
|
line-height: 1;
|
||||||
opacity: 0.78;
|
opacity: 0.78;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
@@ -184,12 +188,4 @@ const updatePart = (part: DatePart, value: string) => {
|
|||||||
.dark .native-date-separator {
|
.dark .native-date-separator {
|
||||||
color: #aabdc2;
|
color: #aabdc2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 640px) {
|
|
||||||
.native-date-strip {
|
|
||||||
width: max-content;
|
|
||||||
min-width: 9.75rem;
|
|
||||||
padding-inline: 0.55rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user