Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Smaller shot tiles with 3-line text; smaller reference grid icons

Bittic1a872ae2a42
diff --git a/src/styles/generator.css b/src/styles/generator.css
index cd91641..84a192b 100644
--- a/src/styles/generator.css
+++ b/src/styles/generator.css
@@ -354,14 +354,14 @@
of the shot's words. 4px corners and a hairline edge like any Fluent grid
item; rest, hover and the open shot are the shared selectable-card rule
(.ui-selectable--card: an accent fill and ring). The grid auto-fills
- fixed 360px columns: resizing the inspector wraps tiles onto more rows
+ fixed 300px columns: resizing the inspector wraps tiles onto more rows
rather than growing or shrinking them.
========================================================================== */
.shot-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(0, var(--shot-tile-width)));
- --shot-tile-width: 360px;
+ --shot-tile-width: 300px;
gap: var(--space-2);
margin: 0;
padding: var(--space-2) var(--space-3) var(--space-3);
@@ -474,14 +474,25 @@
white-space: nowrap;
}
-/* One line of the shot's own words, ellipsised; the full line is in the
- tooltip and in the inspector. */
+/* Up to three lines of the shot's own words, clamped; the full text is in
+ the tooltip and in the inspector. The tile keeps room for all three so
+ the grid's rows line up. The list keeps it to one ellipsised line. */
.shot-card__line {
min-width: 0;
+ min-height: 48px;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 3;
overflow: hidden;
color: var(--text-secondary);
font-size: var(--text-xs);
line-height: 16px;
+ overflow-wrap: anywhere;
+}
+
+.scene-board--list .shot-card__line {
+ min-height: 0;
+ display: block;
text-overflow: ellipsis;
white-space: nowrap;
}
diff --git a/src/styles/references.css b/src/styles/references.css
index 6e5eaef..7f3de38 100644
--- a/src/styles/references.css
+++ b/src/styles/references.css
@@ -57,14 +57,14 @@
}
/* --- Icons view ---------------------------------------------------------------
- Auto-filling 240px-and-up tiles: a square picture and a 12px name. Rest, hover and
+ Auto-filling 160px-and-up tiles: a square picture and a 12px name. Rest, hover and
selection are the shared selectable-card rule (.ui-selectable--card): a
fill under the mouse, an accent fill and ring when selected.
========================================================================== */
.reference-grid {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
+ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: var(--space-2);
padding: var(--space-2) var(--space-3);
}