Peach: Local-first video metadata scraper and media manager.
fix(web): 短回执按内容宽度保持操作按钮同行
longmeidao58edbae97b7e
diff --git a/frontend/e2e/toast-layout.test.ts b/frontend/e2e/toast-layout.test.tsindex fbd6e077a..93f6f440c 100644--- a/frontend/e2e/toast-layout.test.ts+++ b/frontend/e2e/toast-layout.test.ts@@ -57,7 +57,9 @@ for (const viewport of [...VIEWPORTS, { name: 'narrow', width: 320, height: 844,}if (scenario.label) {assert.ok(box.buttonLeft! >= box.titleRight || box.buttonTop! >= box.titleBottom, JSON.stringify(box));- if (viewport.mobile) assert.ok(box.buttonTop! >= box.titleBottom, JSON.stringify(box));+ const inline = scenario.name === 'undo' || (scenario.name === 'action' && viewport.width >= 390);+ if (inline) assert.ok(box.buttonLeft! >= box.titleRight && box.buttonTop! < box.titleBottom, JSON.stringify(box));+ else assert.ok(box.buttonTop! >= box.titleBottom, JSON.stringify(box));}const rect = (await toast.boundingBox())!;await opened.page.screenshot({ path: resolve(`../build/toast-preview/${viewport.name}-${scenario.name}.png`),diff --git a/web/css/17-overlay.css b/web/css/17-overlay.cssindex d39b20034..5643d56a8 100644--- a/web/css/17-overlay.css+++ b/web/css/17-overlay.css@@ -9,7 +9,9 @@width:max-content;min-width:min(400px,100%);max-width:100%;right:0;padding:18px 20px;gap:12px;flex-wrap:wrap;border-radius:var(--floating-radius);font:var(--board-body);box-shadow:var(--elevation-dropdown)}-#toasts [data-sonner-toast][data-styled=true] [data-content]{flex:1 1 min(240px,calc(100% - 32px))}+/* 正文按实际内容参与排布,上限留出图标、间距与 Sonner 的光学校正边距。 */+#toasts [data-sonner-toast][data-styled=true] [data-content]{flex:1 1 auto;+ max-width:calc(100% - 28px - var(--toast-icon-margin-start) - var(--toast-icon-margin-end))}#toasts [data-sonner-toast][data-styled=true] [data-button]{white-space:nowrap;margin-left:auto}@media(max-width:600px){#toasts [data-sonner-toaster]{width:calc(100% - var(--mobile-offset-left) - var(--mobile-offset-right))}