1 Commits

Author SHA1 Message Date
weli 8d4ed8099c fix: align portrait matrix sidebar with slots
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-02 22:40:05 +08:00
2 changed files with 9 additions and 0 deletions
@@ -304,6 +304,7 @@ export default defineComponent({
<style scoped lang="less">
@sidebar-width: 1.2rem;
@cell-width: 1.8rem;
@portrait-header-height: 0.72rem;
.matrix-wrapper {
width: 100%;
@@ -334,9 +335,12 @@ export default defineComponent({
height: 100%;
display: flex;
flex-direction: column;
box-sizing: border-box;
pointer-events: none; /* allow click-through to cells underneath */
.sidebar-corner {
height: @portrait-header-height;
box-sizing: border-box;
flex-shrink: 0;
background: #f7f8fa;
border-bottom: 1px solid #e8e8e8;
@@ -392,6 +396,7 @@ export default defineComponent({
/* ─── 行:共用 ─── */
.sr-header {
display: flex;
height: @portrait-header-height;
flex-shrink: 0;
}
+4
View File
@@ -1265,6 +1265,10 @@ export default defineComponent({
min-height: 0;
}
:deep(.matrix-sidebar) {
padding-bottom: calc(0.72rem + env(safe-area-inset-bottom));
}
:deep(.matrix-scroll) {
padding-bottom: calc(0.72rem + env(safe-area-inset-bottom));
box-sizing: border-box;