Revert "fix(KB-166): revert mobile board flex layout from KB-164"

This reverts commit 042cddcb7a281e9886be21ee47b42d50d75a7706.
This commit is contained in:
Dustin Byrne
2026-03-28 10:01:36 -04:00
parent 27f40d20ac
commit 96f1070108
3 changed files with 346 additions and 103 deletions

View File

@@ -0,0 +1,5 @@
---
"@dustinbyrne/kb": patch
---
Fix double horizontal scrollbar on mobile board view by switching the board from a 5-column grid to a flex layout on narrow viewports (≤768px) with snap-scrolling.

View File

@@ -52,4 +52,23 @@ describe("Board", () => {
expect(screen.getByTestId(`column-${col}`)).toBeDefined(); expect(screen.getByTestId(`column-${col}`)).toBeDefined();
} }
}); });
it("renders all 5 columns as direct children of .board (CSS selector target)", () => {
renderBoard();
const board = screen.getByRole("main");
// The mock Column renders <div data-testid="column-{col}" />, which are direct children
const directChildren = Array.from(board.children);
expect(directChildren).toHaveLength(COLUMNS.length);
// Each direct child should be one of the column test-id elements
for (const col of COLUMNS) {
const colEl = screen.getByTestId(`column-${col}`);
expect(colEl.parentElement).toBe(board);
}
});
it("renders the board element as a <main> tag (semantic structure)", () => {
renderBoard();
const board = screen.getByRole("main");
expect(board.tagName).toBe("MAIN");
});
}); });

View File

@@ -1,36 +1,44 @@
/* === Reset & Tokens === */ /* === Reset & Tokens === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } *,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root { :root {
--bg: #0d1117; --bg: #0d1117;
--surface: #161b22; --surface: #161b22;
--card: #21262d; --card: #21262d;
--card-hover: #282e36; --card-hover: #282e36;
--border: #30363d; --border: #30363d;
--text: #e6edf3; --text: #e6edf3;
--text-muted: #8b949e; --text-muted: #8b949e;
--text-dim: #484f58; --text-dim: #484f58;
--triage: #d29922; --triage: #d29922;
--todo: #58a6ff; --todo: #58a6ff;
--in-progress: #bc8cff; --in-progress: #bc8cff;
--in-review: #3fb950; --in-review: #3fb950;
--done: #8b949e; --done: #8b949e;
--color-success: #3fb950; --color-success: #3fb950;
--color-error: #f85149; --color-error: #f85149;
--color-muted: #8b949e; --color-muted: #8b949e;
--radius: 8px; --radius: 8px;
--radius-lg: 12px; --radius-lg: 12px;
--shadow: 0 4px 24px rgba(0,0,0,0.4); --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
--transition-fast: 0.15s ease; --transition-fast: 0.15s ease;
--transition-normal: 0.2s ease; --transition-normal: 0.2s ease;
} }
html, body { html,
body {
height: 100%; height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
background: var(--bg); background: var(--bg);
color: var(--text); color: var(--text);
overflow: hidden; overflow: hidden;
@@ -46,9 +54,21 @@ html, body {
background: var(--surface); background: var(--surface);
} }
.header-left { display: flex; align-items: center; gap: 8px; } .header-left {
.header-logo { width: 24px; height: 24px; flex-shrink: 0; } display: flex;
.header-actions { display: flex; align-items: center; gap: 8px; } align-items: center;
gap: 8px;
}
.header-logo {
width: 24px;
height: 24px;
flex-shrink: 0;
}
.header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.btn-icon { .btn-icon {
background: none; background: none;
@@ -58,7 +78,9 @@ html, body {
cursor: pointer; cursor: pointer;
padding: 4px 8px; padding: 4px 8px;
border-radius: var(--radius); border-radius: var(--radius);
transition: color 0.15s, background 0.15s; transition:
color 0.15s,
background 0.15s;
} }
.btn-icon:hover { .btn-icon:hover {
color: var(--text); color: var(--text);
@@ -76,8 +98,16 @@ html, body {
.btn-icon--stopped:hover { .btn-icon--stopped:hover {
color: var(--color-error); color: var(--color-error);
} }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; } .logo {
.logo-sub { font-size: 13px; color: var(--text-muted); font-weight: 400; } font-size: 20px;
font-weight: 700;
letter-spacing: -0.5px;
}
.logo-sub {
font-size: 13px;
color: var(--text-muted);
font-weight: 400;
}
/* === Buttons === */ /* === Buttons === */
.btn { .btn {
@@ -88,33 +118,54 @@ html, body {
color: var(--text); color: var(--text);
font-size: 13px; font-size: 13px;
cursor: pointer; cursor: pointer;
transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast); transition:
background var(--transition-fast),
border-color var(--transition-fast),
transform var(--transition-fast),
box-shadow var(--transition-fast);
}
.btn:hover {
background: var(--card-hover);
border-color: var(--text-muted);
}
.btn:active {
transform: scale(0.97);
} }
.btn:hover { background: var(--card-hover); border-color: var(--text-muted); }
.btn:active { transform: scale(0.97); }
.btn-primary { .btn-primary {
background: #238636; background: #238636;
border-color: #2ea043; border-color: #2ea043;
color: #fff; color: #fff;
} }
.btn-primary:hover { background: #2ea043; box-shadow: 0 0 8px rgba(46,160,67,0.3); } .btn-primary:hover {
background: #2ea043;
box-shadow: 0 0 8px rgba(46, 160, 67, 0.3);
}
.btn-danger { .btn-danger {
background: #da3633; background: #da3633;
border-color: #f85149; border-color: #f85149;
color: #fff; color: #fff;
} }
.btn-danger:hover { background: #f85149; box-shadow: 0 0 8px rgba(248,81,73,0.3); } .btn-danger:hover {
background: #f85149;
box-shadow: 0 0 8px rgba(248, 81, 73, 0.3);
}
.btn-warning { .btn-warning {
background: #d29922; background: #d29922;
border-color: #e3b341; border-color: #e3b341;
color: #fff; color: #fff;
} }
.btn-warning:hover { background: #e3b341; box-shadow: 0 0 8px rgba(227,179,65,0.3); } .btn-warning:hover {
background: #e3b341;
box-shadow: 0 0 8px rgba(227, 179, 65, 0.3);
}
.btn-sm { padding: 4px 10px; font-size: 12px; } .btn-sm {
padding: 4px 10px;
font-size: 12px;
}
/* === Board === */ /* === Board === */
.board { .board {
@@ -129,9 +180,16 @@ html, body {
scrollbar-width: thin; scrollbar-width: thin;
} }
.board::-webkit-scrollbar { height: 6px; } .board::-webkit-scrollbar {
.board::-webkit-scrollbar-track { background: transparent; } height: 6px;
.board::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } }
.board::-webkit-scrollbar-track {
background: transparent;
}
.board::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
.column { .column {
display: flex; display: flex;
@@ -162,11 +220,21 @@ html, body {
height: 10px; height: 10px;
border-radius: 50%; border-radius: 50%;
} }
.dot-triage { background: var(--triage); } .dot-triage {
.dot-todo { background: var(--todo); } background: var(--triage);
.dot-in-progress { background: var(--in-progress); } }
.dot-in-review { background: var(--in-review); } .dot-todo {
.dot-done { background: var(--done); } background: var(--todo);
}
.dot-in-progress {
background: var(--in-progress);
}
.dot-in-review {
background: var(--in-review);
}
.dot-done {
background: var(--done);
}
.column-header h2 { .column-header h2 {
font-size: 14px; font-size: 14px;
@@ -212,9 +280,16 @@ html, body {
gap: 6px; gap: 6px;
} }
.column-body::-webkit-scrollbar { width: 4px; } .column-body::-webkit-scrollbar {
.column-body::-webkit-scrollbar-track { background: transparent; } width: 4px;
.column-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } }
.column-body::-webkit-scrollbar-track {
background: transparent;
}
.column-body::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 4px;
}
/* === Cards === */ /* === Cards === */
.card { .card {
@@ -223,15 +298,24 @@ html, body {
border-radius: var(--radius); border-radius: var(--radius);
padding: 10px 12px; padding: 10px 12px;
cursor: grab; cursor: grab;
transition: background 0.15s, border-color 0.15s, transform 0.15s, opacity 0.2s; transition:
background 0.15s,
border-color 0.15s,
transform 0.15s,
opacity 0.2s;
user-select: none; user-select: none;
} }
.card:hover { .card:hover {
background: var(--card-hover); background: var(--card-hover);
border-color: var(--text-muted); border-color: var(--text-muted);
} }
.card:active { cursor: grabbing; } .card:active {
.card.dragging { opacity: 0.4; transform: scale(0.98); } cursor: grabbing;
}
.card.dragging {
opacity: 0.4;
transform: scale(0.98);
}
.card.file-drop-target { .card.file-drop-target {
border: 2px dashed var(--todo); border: 2px dashed var(--todo);
background: rgba(88, 166, 255, 0.08); background: rgba(88, 166, 255, 0.08);
@@ -241,13 +325,24 @@ html, body {
Uses the in-progress column color to stay consistent with the theme. */ Uses the in-progress column color to stay consistent with the theme. */
.card.agent-active { .card.agent-active {
border-color: var(--in-progress); border-color: var(--in-progress);
box-shadow: 0 0 8px rgba(188, 140, 255, 0.4), 0 0 20px rgba(188, 140, 255, 0.15); box-shadow:
0 0 8px rgba(188, 140, 255, 0.4),
0 0 20px rgba(188, 140, 255, 0.15);
animation: agent-glow 2.5s ease-in-out infinite; animation: agent-glow 2.5s ease-in-out infinite;
} }
@keyframes agent-glow { @keyframes agent-glow {
0%, 100% { box-shadow: 0 0 8px rgba(188, 140, 255, 0.4), 0 0 20px rgba(188, 140, 255, 0.15); } 0%,
50% { box-shadow: 0 0 12px rgba(188, 140, 255, 0.6), 0 0 28px rgba(188, 140, 255, 0.25); } 100% {
box-shadow:
0 0 8px rgba(188, 140, 255, 0.4),
0 0 20px rgba(188, 140, 255, 0.15);
}
50% {
box-shadow:
0 0 12px rgba(188, 140, 255, 0.6),
0 0 28px rgba(188, 140, 255, 0.25);
}
} }
.card-header { .card-header {
@@ -299,7 +394,7 @@ html, body {
} }
.card-status-badge.failed { .card-status-badge.failed {
background: rgba(218,54,51,0.15); background: rgba(218, 54, 51, 0.15);
color: #da3633; color: #da3633;
} }
@@ -314,8 +409,13 @@ html, body {
} }
@keyframes pulse { @keyframes pulse {
0%, 100% { opacity: 1; } 0%,
50% { opacity: 0.5; } 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
} }
.card-dep-badge { .card-dep-badge {
@@ -410,14 +510,16 @@ html, body {
display: none; display: none;
position: fixed; position: fixed;
inset: 0; inset: 0;
background: rgba(0,0,0,0.6); background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px); backdrop-filter: blur(4px);
z-index: 100; z-index: 100;
justify-content: center; justify-content: center;
align-items: flex-start; align-items: flex-start;
padding-top: 10vh; padding-top: 10vh;
} }
.modal-overlay.open { display: flex; } .modal-overlay.open {
display: flex;
}
.modal { .modal {
background: var(--surface); background: var(--surface);
@@ -429,7 +531,9 @@ html, body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.modal-lg { width: 640px; } .modal-lg {
width: 640px;
}
.modal-header { .modal-header {
display: flex; display: flex;
@@ -437,9 +541,13 @@ html, body {
align-items: center; align-items: center;
padding: 16px 20px; padding: 16px 20px;
border-bottom: 1px solid var(--border); border-bottom: 1px solid var(--border);
background: rgba(0,0,0,0.1); background: rgba(0, 0, 0, 0.1);
}
.modal-header h3 {
font-size: 15px;
font-weight: 600;
letter-spacing: 0.3px;
} }
.modal-header h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.3px; }
.modal-close { .modal-close {
background: none; background: none;
@@ -450,7 +558,9 @@ html, body {
padding: 0 4px; padding: 0 4px;
line-height: 1; line-height: 1;
} }
.modal-close:hover { color: var(--text); } .modal-close:hover {
color: var(--text);
}
.modal-actions { .modal-actions {
display: flex; display: flex;
@@ -458,12 +568,17 @@ html, body {
gap: 10px; gap: 10px;
padding: 14px 20px; padding: 14px 20px;
border-top: 1px solid var(--border); border-top: 1px solid var(--border);
background: rgba(0,0,0,0.05); background: rgba(0, 0, 0, 0.05);
} }
/* === Forms === */ /* === Forms === */
.form-group { padding: 0 20px; margin-top: 16px; } .form-group {
.form-group:last-of-type { margin-bottom: 8px; } padding: 0 20px;
margin-top: 16px;
}
.form-group:last-of-type {
margin-bottom: 8px;
}
.form-group label { .form-group label {
display: block; display: block;
font-size: 12px; font-size: 12px;
@@ -473,7 +588,11 @@ html, body {
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; } .optional {
font-weight: 400;
text-transform: none;
letter-spacing: 0;
}
.form-group input:not([type="checkbox"]), .form-group input:not([type="checkbox"]),
.form-group textarea { .form-group textarea {
@@ -491,7 +610,7 @@ html, body {
.form-group input:not([type="checkbox"]):focus, .form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus { .form-group textarea:focus {
border-color: var(--todo); border-color: var(--todo);
box-shadow: 0 0 0 2px rgba(88,166,255,0.15); box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.15);
} }
.form-group input[type="checkbox"] { .form-group input[type="checkbox"] {
width: 16px; width: 16px;
@@ -504,7 +623,7 @@ html, body {
transition: box-shadow var(--transition-fast); transition: box-shadow var(--transition-fast);
} }
.form-group input[type="checkbox"]:focus-visible { .form-group input[type="checkbox"]:focus-visible {
box-shadow: 0 0 0 2px rgba(88,166,255,0.3); box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.3);
outline: none; outline: none;
} }
.checkbox-label { .checkbox-label {
@@ -518,7 +637,9 @@ html, body {
font-size: 13px !important; font-size: 13px !important;
cursor: pointer; cursor: pointer;
} }
.form-group textarea { resize: vertical; } .form-group textarea {
resize: vertical;
}
/* === Select Styling === */ /* === Select Styling === */
.form-group select { .form-group select {
@@ -536,11 +657,13 @@ html, body {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: right 10px center; background-position: right 10px center;
transition: border-color var(--transition-fast), box-shadow var(--transition-fast); transition:
border-color var(--transition-fast),
box-shadow var(--transition-fast);
} }
.form-group select:focus { .form-group select:focus {
border-color: var(--todo); border-color: var(--todo);
box-shadow: 0 0 0 2px rgba(88,166,255,0.15); box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.15);
} }
.form-group select:hover:not(:focus) { .form-group select:hover:not(:focus) {
border-color: var(--text-dim); border-color: var(--text-dim);
@@ -585,7 +708,7 @@ html, body {
flex-direction: column; flex-direction: column;
padding: 10px 8px; padding: 10px 8px;
gap: 2px; gap: 2px;
background: rgba(0,0,0,0.1); background: rgba(0, 0, 0, 0.1);
} }
.settings-nav-item { .settings-nav-item {
@@ -601,7 +724,10 @@ html, body {
border-radius: 0 var(--radius) var(--radius) 0; border-radius: 0 var(--radius) var(--radius) 0;
cursor: pointer; cursor: pointer;
text-align: left; text-align: left;
transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); transition:
background var(--transition-fast),
color var(--transition-fast),
border-color var(--transition-fast);
} }
.settings-nav-item:hover { .settings-nav-item:hover {
background: var(--bg); background: var(--bg);
@@ -624,8 +750,14 @@ html, body {
animation: settingsFadeIn var(--transition-normal); animation: settingsFadeIn var(--transition-normal);
} }
@keyframes settingsFadeIn { @keyframes settingsFadeIn {
from { opacity: 0; transform: translateY(4px); } from {
to { opacity: 1; transform: translateY(0); } opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
} }
.settings-section-heading { .settings-section-heading {
@@ -649,7 +781,7 @@ html, body {
transition: background var(--transition-fast); transition: background var(--transition-fast);
} }
.auth-provider-row:hover { .auth-provider-row:hover {
background: rgba(255,255,255,0.02); background: rgba(255, 255, 255, 0.02);
} }
.auth-provider-row:last-of-type { .auth-provider-row:last-of-type {
border-bottom: none; border-bottom: none;
@@ -671,11 +803,11 @@ html, body {
letter-spacing: 0.3px; letter-spacing: 0.3px;
} }
.auth-status-badge.authenticated { .auth-status-badge.authenticated {
background: rgba(63,185,80,0.15); background: rgba(63, 185, 80, 0.15);
color: var(--color-success); color: var(--color-success);
} }
.auth-status-badge.not-authenticated { .auth-status-badge.not-authenticated {
background: rgba(248,81,73,0.15); background: rgba(248, 81, 73, 0.15);
color: var(--color-error); color: var(--color-error);
} }
.auth-hint { .auth-hint {
@@ -696,7 +828,11 @@ html, body {
} }
/* === Detail Modal === */ /* === Detail Modal === */
.detail-title-row { display: flex; align-items: center; gap: 10px; } .detail-title-row {
display: flex;
align-items: center;
gap: 10px;
}
.detail-id { .detail-id {
font-family: "SF Mono", Monaco, Consolas, monospace; font-family: "SF Mono", Monaco, Consolas, monospace;
@@ -713,11 +849,26 @@ html, body {
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.badge-triage { background: rgba(210,153,34,0.15); color: var(--triage); } .badge-triage {
.badge-todo { background: rgba(88,166,255,0.15); color: var(--todo); } background: rgba(210, 153, 34, 0.15);
.badge-in-progress { background: rgba(188,140,255,0.15); color: var(--in-progress); } color: var(--triage);
.badge-in-review { background: rgba(63,185,80,0.15); color: var(--in-review); } }
.badge-done { background: rgba(139,148,158,0.15); color: var(--done); } .badge-todo {
background: rgba(88, 166, 255, 0.15);
color: var(--todo);
}
.badge-in-progress {
background: rgba(188, 140, 255, 0.15);
color: var(--in-progress);
}
.badge-in-review {
background: rgba(63, 185, 80, 0.15);
color: var(--in-review);
}
.badge-done {
background: rgba(139, 148, 158, 0.15);
color: var(--done);
}
.detail-body { .detail-body {
padding: 20px; padding: 20px;
@@ -737,7 +888,9 @@ html, body {
margin-bottom: 16px; margin-bottom: 16px;
} }
.detail-section { margin-top: 16px; } .detail-section {
margin-top: 16px;
}
.detail-section h4 { .detail-section h4 {
font-size: 12px; font-size: 12px;
text-transform: uppercase; text-transform: uppercase;
@@ -774,14 +927,29 @@ html, body {
margin-bottom: 0.5em; margin-bottom: 0.5em;
line-height: 1.3; line-height: 1.3;
} }
.markdown-body h1 { font-size: 1.4em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; } .markdown-body h1 {
.markdown-body h2 { font-size: 1.2em; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; } font-size: 1.4em;
.markdown-body h3 { font-size: 1.05em; } border-bottom: 1px solid var(--border);
.markdown-body h4 { font-size: 1em; color: var(--text-muted); } padding-bottom: 0.3em;
}
.markdown-body h2 {
font-size: 1.2em;
border-bottom: 1px solid var(--border);
padding-bottom: 0.3em;
}
.markdown-body h3 {
font-size: 1.05em;
}
.markdown-body h4 {
font-size: 1em;
color: var(--text-muted);
}
.markdown-body h1:first-child, .markdown-body h1:first-child,
.markdown-body h2:first-child, .markdown-body h2:first-child,
.markdown-body h3:first-child, .markdown-body h3:first-child,
.markdown-body h4:first-child { margin-top: 0; } .markdown-body h4:first-child {
margin-top: 0;
}
.markdown-body p { .markdown-body p {
margin: 0.6em 0; margin: 0.6em 0;
@@ -792,11 +960,19 @@ html, body {
padding-left: 1.6em; padding-left: 1.6em;
margin: 0.5em 0; margin: 0.5em 0;
} }
.markdown-body ul { list-style: disc; } .markdown-body ul {
.markdown-body ol { list-style: decimal; } list-style: disc;
.markdown-body li { margin: 0.25em 0; } }
.markdown-body ol {
list-style: decimal;
}
.markdown-body li {
margin: 0.25em 0;
}
.markdown-body li > ul, .markdown-body li > ul,
.markdown-body li > ol { margin: 0.15em 0; } .markdown-body li > ol {
margin: 0.15em 0;
}
.markdown-body code { .markdown-body code {
background: var(--card); background: var(--card);
@@ -825,7 +1001,9 @@ html, body {
color: var(--todo); color: var(--todo);
text-decoration: none; text-decoration: none;
} }
.markdown-body a:hover { text-decoration: underline; } .markdown-body a:hover {
text-decoration: underline;
}
.markdown-body blockquote { .markdown-body blockquote {
border-left: 3px solid var(--border); border-left: 3px solid var(--border);
@@ -862,12 +1040,21 @@ html, body {
margin: 1em 0; margin: 1em 0;
} }
.markdown-body strong { color: var(--text); } .markdown-body strong {
.markdown-body em { font-style: italic; } color: var(--text);
}
.markdown-body em {
font-style: italic;
}
.markdown-body img { max-width: 100%; border-radius: var(--radius); } .markdown-body img {
max-width: 100%;
border-radius: var(--radius);
}
.detail-deps { margin-top: 16px; } .detail-deps {
margin-top: 16px;
}
.detail-deps h4 { .detail-deps h4 {
font-size: 12px; font-size: 12px;
text-transform: uppercase; text-transform: uppercase;
@@ -973,13 +1160,25 @@ html, body {
animation: toast-in 0.25s ease-out; animation: toast-in 0.25s ease-out;
box-shadow: var(--shadow); box-shadow: var(--shadow);
} }
.toast-success { background: #238636; } .toast-success {
.toast-error { background: #da3633; } background: #238636;
.toast-info { background: #1f6feb; } }
.toast-error {
background: #da3633;
}
.toast-info {
background: #1f6feb;
}
@keyframes toast-in { @keyframes toast-in {
from { opacity: 0; transform: translateY(12px); } from {
to { opacity: 1; transform: translateY(0); } opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
} }
/* === Worktree Groups === */ /* === Worktree Groups === */
@@ -1189,7 +1388,7 @@ html, body {
background: var(--card-hover); background: var(--card-hover);
} }
.dep-dropdown-item.selected { .dep-dropdown-item.selected {
background: rgba(88,166,255,0.15); background: rgba(88, 166, 255, 0.15);
} }
.dep-dropdown-id { .dep-dropdown-id {
@@ -1287,7 +1486,9 @@ html, body {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
font-family: inherit; font-family: inherit;
transition: color var(--transition-fast), border-color var(--transition-fast); transition:
color var(--transition-fast),
border-color var(--transition-fast);
} }
.detail-tab-active { .detail-tab-active {
@@ -1296,11 +1497,23 @@ html, body {
font-weight: 600; font-weight: 600;
} }
/* === Mobile: Task Detail Modal === /* === Mobile Responsive Overrides ===
On narrow viewports (≤768px) the modal goes full-screen, action buttons wrap, On narrow viewports (≤768px) the board switches from a 5-column grid to a
and spacing is reduced to stay usable on screens as small as 320px. */ horizontally-scrollable flex layout so only one scrollbar appears. Each
column gets a fixed min-width and snap-scrolling for a polished swipe feel.
The modal also goes full-screen with reduced spacing. */
@media (max-width: 768px) { @media (max-width: 768px) {
/* Board: horizontal scroll-snap for swipe-between-columns */ /* Prevent ancestor elements from producing a second horizontal scrollbar */
html,
body {
overflow: hidden;
}
#root {
overflow: hidden;
}
/* Board: flex layout with single horizontal scroll + snap */
.board { .board {
display: flex; display: flex;
overflow-x: auto; overflow-x: auto;
@@ -1317,6 +1530,12 @@ html, body {
scroll-snap-align: start; scroll-snap-align: start;
} }
/* Reduce header padding to reclaim horizontal space */
.header {
padding: 12px 12px;
}
/* Modal: full-screen on mobile */
.modal-overlay { .modal-overlay {
padding-top: 0; padding-top: 0;
align-items: stretch; align-items: stretch;