Align controls to 36/10 and make create modals full-screen on mobile.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-10 23:45:11 +03:30
co-authored by Cursor
parent 212d02f664
commit 535c428270
36 changed files with 454 additions and 238 deletions
+68 -31
View File
@@ -1597,7 +1597,7 @@ onMounted(load);
--muted: #64748b;
--line: #e2e8f0;
--card: #fff;
--radius: 14px;
--radius: 10px;
display: grid;
gap: 1rem;
min-width: 0;
@@ -1631,12 +1631,15 @@ onMounted(load);
border: 1px solid #e2e8f0;
background: #fff;
color: #334155;
border-radius: 12px;
padding: 0.55rem 0.9rem;
border-radius: var(--radius);
min-height: var(--control-h);
height: var(--control-h);
padding: 0 0.85rem;
font: inherit;
font-weight: 700;
cursor: pointer;
flex-shrink: 0;
box-sizing: border-box;
}
.back-btn :deep(.ico) {
@@ -1724,16 +1727,17 @@ h1 {
grid-auto-flow: column;
grid-auto-columns: 1fr;
gap: 0.3rem;
padding: 0.28rem;
border-radius: 14px;
padding: 0.2rem;
border-radius: var(--radius);
background: #f8fafc;
margin-bottom: 0.15rem;
}
.seg-tabs button {
min-height: 40px;
min-height: var(--control-h);
height: var(--control-h);
border: 0;
border-radius: 12px;
border-radius: 8px;
background: transparent;
color: #64748b;
font: inherit;
@@ -1799,11 +1803,20 @@ h1 {
.summary :deep(input) {
width: 100%;
border: 1px solid var(--line);
border-radius: 12px;
padding: 0.7rem 0.85rem;
border-radius: var(--radius);
min-height: var(--control-h);
height: var(--control-h);
padding: 0 0.85rem;
font: inherit;
background: #fff;
color: var(--ink);
box-sizing: border-box;
}
.field textarea {
height: auto;
min-height: 5.5rem;
padding: 0.65rem 0.85rem;
}
.control input,
@@ -1830,9 +1843,10 @@ h1 {
.days-row button {
flex: 1;
min-width: 4.2rem;
min-height: 38px;
min-height: var(--control-h);
height: var(--control-h);
border: 1px solid var(--line);
border-radius: 10px;
border-radius: var(--radius);
background: #fff;
font: inherit;
font-weight: 700;
@@ -1859,8 +1873,9 @@ h1 {
justify-content: space-between;
border: 1px solid #eef2f6;
background: #f8fafc;
border-radius: 12px;
padding: 0.7rem 0.85rem;
border-radius: var(--radius);
min-height: var(--control-h);
padding: 0 0.85rem;
font: inherit;
font-weight: 800;
color: var(--ink);
@@ -1903,14 +1918,22 @@ h1 {
align-items: center;
justify-content: center;
gap: 0.35rem;
min-height: 44px;
padding: 0.55rem 1rem;
border-radius: 12px;
min-height: var(--control-h);
height: var(--control-h);
padding: 0 0.95rem;
border-radius: var(--radius);
border: 1px solid transparent;
font: inherit;
font-weight: 800;
cursor: pointer;
text-decoration: none;
box-sizing: border-box;
}
.btn.cancel {
background: #fff;
color: #64748b;
border-color: var(--line);
}
.btn.primary {
@@ -1931,8 +1954,9 @@ h1 {
}
.btn.sm {
min-height: 36px;
padding: 0.35rem 0.7rem;
min-height: var(--control-h);
height: var(--control-h);
padding: 0 0.7rem;
font-size: 0.85rem;
}
@@ -1975,7 +1999,6 @@ h1 {
.search input {
padding-inline-start: 2.2rem;
min-height: 42px;
}
.table-wrap {
@@ -2055,9 +2078,10 @@ h1 {
align-items: center;
justify-content: space-between;
min-width: 110px;
min-height: 40px;
min-height: var(--control-h);
height: var(--control-h);
border: 1px solid var(--line);
border-radius: 12px;
border-radius: var(--radius);
padding: 0.15rem;
background: #fff;
}
@@ -2107,9 +2131,10 @@ h1 {
.add-row {
width: 100%;
min-height: 46px;
min-height: var(--control-h);
height: var(--control-h);
border: 1.5px dashed var(--teal-border);
border-radius: 12px;
border-radius: var(--radius);
background: var(--teal-soft);
color: var(--teal);
font: inherit;
@@ -2141,8 +2166,6 @@ h1 {
.sum-row .tax-input {
max-width: 140px;
text-align: start;
min-height: 40px;
padding: 0.45rem 0.65rem;
}
.sum-row.payable {
@@ -2223,10 +2246,11 @@ h1 {
}
.icon-add {
width: 42px;
min-height: 42px;
width: var(--control-h);
min-height: var(--control-h);
height: var(--control-h);
padding: 0;
border-radius: 12px;
border-radius: var(--radius);
}
.mob-unit {
@@ -2240,9 +2264,9 @@ h1 {
}
.mob-back {
width: 42px;
height: 42px;
border-radius: 999px;
width: var(--control-h);
height: var(--control-h);
border-radius: var(--radius);
border: 1px solid var(--line);
background: #fff;
color: var(--teal);
@@ -2380,6 +2404,19 @@ h1 {
.side-actions {
display: none;
}
.page.embedded .embed-actions {
display: none !important;
}
.page.embedded .mob-bar {
bottom: 0;
margin-inline: -0.15rem;
padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom));
background: #fff;
border-top: 1px solid #f1f5f9;
z-index: 3;
}
}
@media (max-width: 700px) {