🐛 修复手机导航对比度与趋势日期布局
针对 iPhone Safari 中侧栏半透明合成导致导航文字和图标发灰的问题,提高移动导航可读性,并恢复趋势日期的手机单行布局。 - 导航抽屉改为不透明实色背景,遮罩只作用于右侧内容 - 提高品牌、菜单、关闭按钮和退出登录的文字图标对比度 - 强化当前菜单选中态,兼顾浅色与深色模式 - 手机端开始和结束日期恢复同一行并保持 44px 控件高度 - 已通过架构检查、类型检查、ESLint 和生产构建
This commit is contained in:
1 parent
0f075aaeed
commit
d47d0edbce
2 files changed
+30
-27
No files matched your search
@@ -214,36 +214,39 @@ const updatePart = (part: DatePart, value: string) => {
|
||||
|
||||
@media (max-width: 639px) {
|
||||
:global(.analytics-date-range) {
|
||||
--native-date-width: 100%;
|
||||
display: grid !important;
|
||||
--native-date-width: auto;
|
||||
display: flex !important;
|
||||
width: 100%;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 0.5rem !important;
|
||||
flex-wrap: nowrap !important;
|
||||
gap: 0.2rem !important;
|
||||
}
|
||||
|
||||
.native-date-strip {
|
||||
width: min-content;
|
||||
min-width: 0;
|
||||
flex: 1 1 0;
|
||||
min-height: 2.75rem;
|
||||
padding-inline: 0.5rem;
|
||||
padding-inline: 0.2rem;
|
||||
}
|
||||
|
||||
.native-date-part {
|
||||
height: 2.75rem;
|
||||
min-width: 2.75rem;
|
||||
font-size: 0.9rem;
|
||||
min-width: 0;
|
||||
font-size: clamp(0.75rem, 3.4vw, 0.9rem);
|
||||
}
|
||||
|
||||
.native-date-year {
|
||||
width: 5.25rem;
|
||||
width: clamp(3.35rem, 15vw, 4rem);
|
||||
}
|
||||
|
||||
.native-date-month,
|
||||
.native-date-day {
|
||||
width: 2.75rem;
|
||||
width: clamp(1.7rem, 8vw, 2.2rem);
|
||||
}
|
||||
|
||||
.native-date-separator {
|
||||
margin-inline: clamp(0.12ch, 0.55vw, 0.3ch);
|
||||
font-size: clamp(0.8rem, 3.65vw, 0.95rem);
|
||||
margin-inline: 0;
|
||||
font-size: clamp(0.72rem, 3vw, 0.85rem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user