diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f9bb20..ab33122 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,9 @@ All notable changes to BotUI are recorded here. The format follows ### Fixed +- **The card rows painted over the sticky stage.** `position: sticky` and `position: relative` are both positioned elements, and with `z-index: auto` on both the later one in the DOM wins — so `SHAPE`, its scope line and its cards landed on top of `dot/cell` and the stage looked like it had lost its own controls. The stage now carries an explicit layer, and the card group no longer needs one. +- A fade under the stage, so the rows read as passing behind it rather than being sliced through the middle by its edge. Content scrolling under a pinned element is what sticky is for; a card cut in half just reads as a rendering fault. + - **`softness`, `grow` and `floor` were on the page but could not be reached.** They sat below the fold of a side column holding 1001px of content in an 813px viewport, under a grid of picture cards, in a column with no visible bottom — "there is no way to adjust these" was a position bug, not a missing control. The side column is now sticky with its own scrollport, the picture cards moved beside the field they describe, and the three moved ahead of the geometric detail as their own group, because what a field _feels_ like is asked before how big it is. The readout moved below the playground: it is output, not input, and it was the cheapest 112px in the column. - **Three playground sliders were broken in the same way, and none of the tests could see diff --git a/CHANGELOG.zh.md b/CHANGELOG.zh.md index 7ea93be..8cf83e4 100644 --- a/CHANGELOG.zh.md +++ b/CHANGELOG.zh.md @@ -65,6 +65,9 @@ BotUI 的所有值得注意的变更都记录在此。格式遵循 ### 修复 +- **图片卡片盖在了 sticky 的预览区上。** `position: sticky` 和 `position: relative` 都是定位元素,而两者 `z-index` 都是 `auto` 时,DOM 里靠后的那个胜出 —— 于是 `SHAPE`、它的说明和卡片压在了 `dot/cell` 上,预览区看起来像是丢了自己的控件。现在预览区有明确的层级,卡片组不再需要。 +- 预览区下方加了渐隐,让卡片读作"从它背后穿过",而不是被它的边缘拦腰切断。内容从钉住的元素下方滚过本就是 sticky 的用途,但一张被切一半的卡片只会读成渲染故障。 + - **`softness`、`grow`、`floor` 一直在页面上,只是够不到。** 它们落在侧栏的折叠线以下 —— 813px 视口里塞了 1001px 的内容,上面压着一组图片卡片,而这个列看不到底部 —— "这三个没法调"是位置问题,不是控件缺失。现在侧栏 sticky 且有独立滚动区,图片卡片移到它所描述的预览旁边,而这三个被提到几何细节之前、独立成组:点阵"感觉如何"总比"有多大"先被问到。readout 移到了 playground 下方 —— 它是输出不是输入,而且是侧栏里最便宜的 112px。 - **三个 playground 滑杆以同一种方式坏掉,而当时的测试全都看不出来。** `radius`、`aspect`、 diff --git a/apps/site/src/components/Cards.tsx b/apps/site/src/components/Cards.tsx index 5c00a2b..a67f34c 100644 --- a/apps/site/src/components/Cards.tsx +++ b/apps/site/src/components/Cards.tsx @@ -26,7 +26,6 @@ export function CardGroup({ options, onChange, renderPreview, - columns, }: { label: string; scope: string; @@ -36,15 +35,9 @@ export function CardGroup({ onChange: (value: T) => void; /** the card's visual — the engine's own output, not an illustration of it */ renderPreview: (value: T) => ReactNode; - /** the card's fixed width; the row scrolls horizontally past this count */ - columns?: number; }) { return ( -
(columns ?? 4) || undefined} - > +
{label}

{scope}

diff --git a/apps/site/src/components/Playground.tsx b/apps/site/src/components/Playground.tsx index b31e3bf..0c864b0 100644 --- a/apps/site/src/components/Playground.tsx +++ b/apps/site/src/components/Playground.tsx @@ -135,7 +135,6 @@ export function Playground({ initial }: { initial?: Partial }) value={options.silhouette ?? DEFAULTS.silhouette} onChange={(silhouette) => set({ silhouette: silhouette as Silhouette })} options={SILHOUETTE_KEYS.map((key) => ({ value: key, label: silhouetteLabel(key) }))} - columns={6} renderPreview={(value) => } /> @@ -145,7 +144,6 @@ export function Playground({ initial }: { initial?: Partial }) value={options.preset ?? DEFAULTS.preset} onChange={(preset) => set({ preset: preset as PresetName })} options={PRESET_KEYS.map((key) => ({ value: key, label: taskLabel(key) }))} - columns={3} renderPreview={(value) => ( }) }) } options={DOT_SHAPE_KEYS.map((key) => ({ value: key, label: glyphLabel(key) }))} - columns={7} renderPreview={(value) => (