Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/components/ai-edition/NewEditorShell.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,17 @@
border-color: var(--brand);
box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand), transparent 75%);
}
/* Same cell, reused for the icon+label rows (camera shape, camera background).
`minmax(0, 1fr)` stopped a long label from pushing the grid, but the text still
spilled over the button's own border and crowded its neighbour -- « Personnalisé »,
« Пользовательский », "Personalizzato" in a 61 px track. Clip it here, once, for
every labelled cell instead of hoping each locale stays short. */
.cursorCell > span {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

/* ─── chat strip + input ───────────────────────────────────────── */
.chatStrip {
Expand Down
12 changes: 8 additions & 4 deletions src/components/ai-edition/RightPanes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,7 @@ export function LayoutPane() {
style={{
flexDirection: "column",
gap: 4,
padding: 8,
padding: "8px 4px",
display: "flex",
alignItems: "center",
// Sans `minWidth: 0` le bouton garde son minimum de
Expand All @@ -2871,7 +2871,9 @@ export function LayoutPane() {
>
{shape.icon}
</svg>
<span style={{ font: "500 11px/1 var(--font-body)" }}>{ts(shape.labelKey)}</span>
<span title={ts(shape.labelKey)} style={{ font: "500 11px/1 var(--font-body)" }}>
{ts(shape.labelKey)}
</span>
</button>
);
})}
Expand Down Expand Up @@ -2926,7 +2928,7 @@ export function LayoutPane() {
style={{
flexDirection: "column",
gap: 4,
padding: 8,
padding: "8px 4px",
display: "flex",
alignItems: "center",
minWidth: 0,
Expand All @@ -2946,7 +2948,9 @@ export function LayoutPane() {
>
{mode.icon}
</svg>
<span style={{ font: "500 11px/1 var(--font-body)" }}>{ts(mode.labelKey)}</span>
<span title={ts(mode.labelKey)} style={{ font: "500 11px/1 var(--font-body)" }}>
{ts(mode.labelKey)}
</span>
</button>
);
})}
Expand Down
Loading