Chat chrome ends at the rail with a rounded corner

Docking the two chat bands into the rail card removed the floating cut
but the edge stayed a straight vertical line - still a seam ("this
still looks bad"). Both bands now keep the rail's own 12px gutter and
end in the rail card's 1.5rem radius on their left side, so the ending
reads as deliberate; the header divider spans the flat part of the
bottom edge, from the corner curve inward. Phones keep the plain
full-width borders.

The chat suite now pins the geometry: 12px gutter at the seam, 24px
left corners on both bands, zeroed band borders, inset ::after
hairlines. Chat 104/104, mobile 126/126, regression 50/50.

Version 0.5.7, SW -> freezmo-v79.
This commit is contained in:
Martin Dvořák 2026-10-14 18:06:21 +00:00
commit 303e73f555
5 changed files with 46 additions and 37 deletions

View file

@ -1435,14 +1435,16 @@ Things I chose while building, with the reasoning:
navigations as the offline shell — a typo'd URL used to write the error page into the shell navigations as the offline shell — a typo'd URL used to write the error page into the shell
cache. cache.
87. **Chat's chrome docks into the rail (the sidebar seam).** The chat header and composer are 87. **Chat's chrome ends at the rail with a rounded corner (the sidebar seam).** The chat header
full-bleed bands inside the main pane; at desktop widths that pane starts right at the sidebar, and composer are full-bleed bands inside the main pane; at desktop widths that pane starts right
so both bands ended in a hard vertical edge beside the floating rail card — the 12px gutter at the sidebar, so both bands ended in a hard vertical edge beside the floating rail card — the
showed the raw scene, and the bands' fill + backdrop blur made it read as a color step at the 12px gutter showed the raw scene and the bands' fill + blur made it read as a color step at the
seam, with their hairlines starting in mid-air at that edge. Both bands now reach the card's seam. Docking them into the card did not fix it either ("this seam still looks bad" — a straight
right edge (the rail's own 12px padding, expanded or collapsed) and their hairlines are inset cut is still a straight cut): both bands now keep the rail's own 12px gutter and end in the
to the content box instead of touching the seam; phones keep the plain full-width borders. The card's 1.5rem radius on their left side, so the ending is legible as deliberate, with their
chat suite pins the dock (band edge === card edge, zeroed band borders, inset `::after` hairlines inset instead of touching the seam (the header divider spans the flat part of the
bottom edge, from the corner curve inward). Phones keep the plain full-width borders. The chat
suite pins the geometry (12px gutter, 24px left corners, zeroed band borders, inset `::after`
hairlines). The "Chat is set to ignore notes text" banner went away with it — the scope chip hairlines). The "Chat is set to ignore notes text" banner went away with it — the scope chip
already says what the chat may read. already says what the chat may read.

View file

@ -691,7 +691,7 @@
/* Chat header: the same glass as the cards, a touch more fill — its title and /* Chat header: the same glass as the cards, a touch more fill — its title and
scope line sit directly over the sky. At lg its divider is the inset hairline scope line sit directly over the sky. At lg its divider is the inset hairline
the desktop docking block below draws (::after), so it never hits the seam. */ the desktop block below draws (::after), so it never hits the seam. */
.aero .chat-header { .aero .chat-header {
background-color: rgb(232 248 255 / 0.4); background-color: rgb(232 248 255 / 0.4);
border-bottom: 1px solid rgb(255 255 255 / 0.6); border-bottom: 1px solid rgb(255 255 255 / 0.6);
@ -711,19 +711,19 @@
background: rgb(255 255 255 / 0.65); background: rgb(255 255 255 / 0.65);
} }
/* Desktop: the chat chrome docks into the rail. The header and the composer /* Desktop: the chat chrome ends at the rail with a rounded corner. The header
are full-bleed bands inside the main pane; at lg that pane starts exactly and the composer are full-bleed bands inside the main pane, which starts
at the sidebar, so both bands used to stop in a hard vertical edge beside right at the sidebar; a straight vertical edge there read as a hard cut (the
the floating rail card — the scene showed through the 12px gutter and the 12px gutter showed the raw scene and the bands' fill/blur made it a color
bands' own fill/blur made it read as a color step at the seam. They now step at the seam). Both bands now stop at the seam with the rail card's own
reach the card's right edge (the rail's own 12px padding, in the expanded 1.5rem radius on their left end, so the ending reads as deliberate, and their
and the collapsed state alike) and their hairlines span the content box hairlines span the content box instead of touching the seam. Phones keep the
instead of starting in mid-air at the seam. */ plain full-width borders. */
@media (min-width: 1024px) { @media (min-width: 1024px) {
.chat-header { .chat-header {
margin-left: -0.75rem;
padding-left: 1.75rem;
border-bottom: 0; border-bottom: 0;
border-start-start-radius: 1.5rem;
border-end-start-radius: 1.5rem;
} }
.aero .chat-header { .aero .chat-header {
border-bottom: 0; border-bottom: 0;
@ -731,17 +731,18 @@
.chat-header::after { .chat-header::after {
content: ""; content: "";
position: absolute; position: absolute;
left: 1.75rem; left: 1.5rem;
right: 1rem; right: 1rem;
bottom: 0; bottom: 0;
height: 1px; height: 1px;
background: var(--glass-border); background: var(--glass-border);
} }
.chat-composer { .chat-composer,
margin-left: -0.75rem; .chat-composer-band {
border-start-start-radius: 1.5rem;
border-end-start-radius: 1.5rem;
} }
.chat-composer-band { .chat-composer-band {
padding-left: 3.25rem;
border-top: 0; border-top: 0;
} }
.aero .chat-composer { .aero .chat-composer {
@ -750,7 +751,7 @@
.chat-composer::after { .chat-composer::after {
content: ""; content: "";
position: absolute; position: absolute;
left: 3.25rem; left: 2.5rem;
right: 2.5rem; right: 2.5rem;
top: 0; top: 0;
height: 1px; height: 1px;

View file

@ -1,6 +1,6 @@
{ {
"name": "freezmo", "name": "freezmo",
"version": "0.5.6", "version": "0.5.7",
"private": true, "private": true,
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"scripts": { "scripts": {

View file

@ -9,7 +9,7 @@
* *
* Bumping CACHE_VERSION is how a new deploy invalidates old assets. * Bumping CACHE_VERSION is how a new deploy invalidates old assets.
*/ */
const CACHE_VERSION = "freezmo-v78"; const CACHE_VERSION = "freezmo-v79";
const SHELL_CACHE = `${CACHE_VERSION}-shell`; const SHELL_CACHE = `${CACHE_VERSION}-shell`;
const ASSET_CACHE = `${CACHE_VERSION}-assets`; const ASSET_CACHE = `${CACHE_VERSION}-assets`;

View file

@ -291,12 +291,13 @@ try {
await desktop.page.waitForTimeout(400); await desktop.page.waitForTimeout(400);
check("desktop: AI disclaimer under the composer", await desktop.page.getByText("Freezmo uses AI and can make mistakes").isVisible()); check("desktop: AI disclaimer under the composer", await desktop.page.getByText("Freezmo uses AI and can make mistakes").isVisible());
/* The chat chrome docks into the rail: the header and the composer used to /* The chat chrome ends at the rail with the rail card's own radius: the
end in a hard vertical edge beside the floating rail card (the scene header and the composer are full-bleed bands inside the main pane, which
showed through the gutter and their fill/blur made it read as a color starts right at the sidebar — a straight vertical edge there read as a
step at the seam), and their hairlines started right at that edge. Both hard cut (the 12px gutter showed the raw scene and the bands' fill/blur
bands now reach the card's right edge and their hairlines are inset to made it a color step at the seam). Both now keep the rail's 12px gutter
the content box. */ and end in a 1.5rem rounded corner on their left side, with their
hairlines inset instead of touching the seam. */
const seam = await desktop.page.evaluate(() => { const seam = await desktop.page.evaluate(() => {
const card = document.querySelector(".sidebar-surface"); const card = document.querySelector(".sidebar-surface");
const header = document.querySelector(".chat-header"); const header = document.querySelector(".chat-header");
@ -304,23 +305,28 @@ try {
if (!card || !header || !band) return null; if (!card || !header || !band) return null;
const line = (el) => { const line = (el) => {
const cs = getComputedStyle(el, "::after"); const cs = getComputedStyle(el, "::after");
return { content: cs.content, left: parseFloat(cs.left), right: parseFloat(cs.right) }; return { content: cs.content, left: parseFloat(cs.left) };
}; };
const hcs = getComputedStyle(header);
return { return {
cardRight: Math.round(card.getBoundingClientRect().right), cardRight: Math.round(card.getBoundingClientRect().right),
headerLeft: Math.round(header.getBoundingClientRect().left), headerLeft: Math.round(header.getBoundingClientRect().left),
bandLeft: Math.round(band.getBoundingClientRect().left), bandLeft: Math.round(band.getBoundingClientRect().left),
headerBorder: getComputedStyle(header).borderBottomWidth, headerRadius: hcs.borderStartStartRadius,
headerEndRadius: hcs.borderEndStartRadius,
headerBorder: hcs.borderBottomWidth,
bandBorder: getComputedStyle(band).borderTopWidth, bandBorder: getComputedStyle(band).borderTopWidth,
headerLine: line(header), headerLine: line(header),
bandLine: line(band.parentElement), bandLine: line(band.parentElement),
}; };
}); });
check( check(
"desktop: chat chrome docks into the rail (no seam)", "desktop: chat chrome ends in a rounded corner at the seam",
seam !== null && seam !== null &&
seam.headerLeft === seam.cardRight && seam.headerLeft === seam.cardRight + 12 &&
seam.bandLeft === seam.cardRight && seam.bandLeft === seam.cardRight + 12 &&
seam.headerRadius === "24px" &&
seam.headerEndRadius === "24px" &&
seam.headerBorder === "0px" && seam.headerBorder === "0px" &&
seam.bandBorder === "0px" && seam.bandBorder === "0px" &&
seam.headerLine.content !== "none" && seam.headerLine.content !== "none" &&