1 Commits

Author SHA1 Message Date
weli c44d763e63 fix: adapt portrait matrix row heights without drift
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-02 22:46:42 +08:00
2 changed files with 10 additions and 3 deletions
@@ -305,6 +305,7 @@ export default defineComponent({
@sidebar-width: 1.2rem;
@cell-width: 1.8rem;
@portrait-header-height: 0.72rem;
@portrait-day-row-min-height: 1.16rem;
.matrix-wrapper {
width: 100%;
@@ -350,7 +351,8 @@ export default defineComponent({
}
.sidebar-row {
flex: 1;
flex: 1 0 @portrait-day-row-min-height;
min-height: @portrait-day-row-min-height;
display: flex;
flex-direction: column;
align-items: center;
@@ -391,6 +393,7 @@ export default defineComponent({
flex-direction: column;
min-height: 100%;
min-width: fit-content;
box-sizing: border-box;
}
/* ─── 行:共用 ─── */
@@ -402,8 +405,8 @@ export default defineComponent({
.sr-row {
display: flex;
flex: 1;
min-height: 0;
flex: 1 0 @portrait-day-row-min-height;
min-height: @portrait-day-row-min-height;
}
/* ─── Spacer(占位与 sidebar 同宽) ─── */
+4
View File
@@ -1270,6 +1270,10 @@ export default defineComponent({
}
:deep(.matrix-scroll) {
box-sizing: border-box;
}
:deep(.scroll-inner) {
padding-bottom: calc(0.72rem + env(safe-area-inset-bottom));
box-sizing: border-box;
}