Skip to content

Commit b567e0a

Browse files
committed
Enable IndexedDb based patch storage
1 parent c3d10c9 commit b567e0a

3 files changed

Lines changed: 538 additions & 9 deletions

File tree

app/globals.css

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,47 @@ button {
9191
line-height: 1.45;
9292
}
9393

94+
.sidebar-credit {
95+
margin: 12px 0 0;
96+
color: var(--muted);
97+
font-size: 0.83rem;
98+
line-height: 1.45;
99+
}
100+
101+
.sidebar-credit a {
102+
color: inherit;
103+
text-decoration-thickness: 1px;
104+
text-underline-offset: 2px;
105+
}
106+
94107
.control-stack {
95108
display: grid;
96109
gap: 10px;
97110
}
98111

112+
.patch-meta {
113+
display: grid;
114+
gap: 2px;
115+
}
116+
117+
.patch-meta-label {
118+
color: var(--muted);
119+
font-size: 0.74rem;
120+
text-transform: uppercase;
121+
letter-spacing: 0.08em;
122+
}
123+
124+
.patch-meta-name {
125+
font-size: 1rem;
126+
}
127+
128+
.sidebar-status {
129+
margin: 2px 0 0;
130+
color: var(--muted);
131+
font-size: 0.83rem;
132+
line-height: 1.4;
133+
}
134+
99135
.search-input,
100136
.select-input {
101137
width: 100%;
@@ -241,7 +277,9 @@ button {
241277
linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
242278
linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
243279
background-size: 32px 32px, 32px 32px, auto;
244-
box-shadow: inset 0 0 0 1px rgba(29, 26, 28, 0.08);
280+
box-shadow:
281+
inset 0 0 0 2px rgba(29, 26, 28, 0.18),
282+
0 0 0 1px rgba(255, 255, 255, 0.28);
245283
}
246284

247285
.canvas-overlay {
@@ -416,6 +454,12 @@ button {
416454
gap: 10px;
417455
}
418456

457+
.button-row.compact button {
458+
padding: 8px 10px;
459+
border-radius: 12px;
460+
font-size: 0.86rem;
461+
}
462+
419463
.button-row button {
420464
border: 1px solid var(--line);
421465
border-radius: 14px;
@@ -433,6 +477,52 @@ button {
433477
background: #111012;
434478
}
435479

480+
.patch-library {
481+
display: grid;
482+
gap: 8px;
483+
margin-top: 4px;
484+
max-height: 240px;
485+
overflow: auto;
486+
}
487+
488+
.patch-library-empty {
489+
margin: 0;
490+
color: var(--muted);
491+
font-size: 0.85rem;
492+
}
493+
494+
.patch-library-item {
495+
display: grid;
496+
grid-template-columns: minmax(0, 1fr) auto;
497+
gap: 8px;
498+
align-items: center;
499+
}
500+
501+
.patch-library-open,
502+
.patch-library-delete {
503+
border: 1px solid var(--line);
504+
background: rgba(255, 255, 255, 0.72);
505+
}
506+
507+
.patch-library-open {
508+
display: grid;
509+
gap: 2px;
510+
text-align: left;
511+
border-radius: 14px;
512+
padding: 10px 12px;
513+
}
514+
515+
.patch-library-open span:last-child {
516+
color: var(--muted);
517+
font-size: 0.78rem;
518+
}
519+
520+
.patch-library-delete {
521+
border-radius: 12px;
522+
padding: 10px 12px;
523+
color: #9b1e23;
524+
}
525+
436526
@media (max-width: 1100px) {
437527
body {
438528
overflow: auto;

0 commit comments

Comments
 (0)