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