v0.11.4
This commit is contained in:
+337
-2
@@ -35,7 +35,7 @@
|
||||
--grid: rgba(255, 255, 255, .07);
|
||||
--scroll-thumb: #444444;
|
||||
--scroll-thumb-hover: #575757;
|
||||
--radius: 22px;
|
||||
--radius: 16px;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
@@ -6180,7 +6180,7 @@ body.flow-editor-open { overflow:hidden; }
|
||||
.flow-editor-bar { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:10px 18px; border-bottom:1px solid var(--line); background:var(--surface); }
|
||||
.flow-editor-title { display:flex; align-items:center; gap:12px; min-width:0; }
|
||||
.flow-editor-title > div { display:grid; gap:2px; min-width:0; }
|
||||
.flow-name-wrap { min-width:280px; min-height:36px; display:flex; align-items:center; }
|
||||
.flow-name-wrap { min-width:280px; min-height:36px; display:flex; align-items:center; gap:8px; }
|
||||
.flow-name-view { display:flex; align-items:center; gap:6px; min-width:0; }
|
||||
.flow-name-view[hidden] { display:none !important; }
|
||||
.flow-name-text { appearance:none; border:0; background:transparent; color:var(--text); font:inherit; font-weight:750; font-size:1.12rem; line-height:1.25; padding:4px 2px; min-width:0; max-width:min(52vw,620px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; cursor:text; text-align:left; }
|
||||
@@ -6426,3 +6426,338 @@ body.flow-editor-open { overflow:hidden; }
|
||||
.flow-template-preview-node-trigger { border-top:3px solid var(--warning); }
|
||||
.flow-template-preview-node-time, .flow-template-preview-node-timeop { border-top:3px solid var(--blue); }
|
||||
.flow-template-preview-node-haaction { border-top:3px solid var(--accent); }
|
||||
|
||||
|
||||
/* Compact Flow state control and mobile action entry point. */
|
||||
.flow-enabled { white-space:nowrap; }
|
||||
.flow-enabled input { width:16px; min-height:16px; accent-color:var(--accent); }
|
||||
.flow-mobile-actions-button { display:none; }
|
||||
.flow-inspector-head-actions { display:flex; align-items:center; gap:7px; }
|
||||
.flow-inspector-close { display:none; width:34px; height:34px; padding:0; font-size:1.1rem; }
|
||||
|
||||
/* Clarify which HA aliases are metric sources and which are only Flow references. */
|
||||
.sensor-alias-entity { min-width:0; display:flex; align-items:center; gap:7px; }
|
||||
.sensor-alias-entity > .mono { min-width:0; overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.sensor-source-badges { display:flex; flex:0 0 auto; gap:4px; }
|
||||
.sensor-source-badge { display:inline-flex; align-items:center; min-height:20px; padding:2px 6px; border:1px solid var(--line); border-radius:999px; font-size:.64rem; font-weight:750; line-height:1; white-space:nowrap; }
|
||||
.sensor-source-badge.metrics { border-color:var(--accent-border); background:var(--accent-soft); color:var(--accent); }
|
||||
.sensor-source-badge.flow { background:var(--surface); color:var(--muted); }
|
||||
|
||||
/* UX refresh: clearer hierarchy, safer destructive actions and touch-first layouts. */
|
||||
:root { --radius-small:10px; --radius-medium:14px; }
|
||||
|
||||
.device-card,.panel,.list-card { border-radius:var(--radius); }
|
||||
button { border-radius:11px; }
|
||||
.metric { border-radius:14px; }
|
||||
.lead { max-width:780px; line-height:1.55; }
|
||||
.section-heading h1 { margin-bottom:0; }
|
||||
|
||||
.automation-tabs {
|
||||
display:flex; align-items:center; gap:5px; width:max-content; max-width:100%;
|
||||
margin:-2px 0 14px; padding:5px; overflow-x:auto; border:1px solid var(--line);
|
||||
border-radius:14px; background:var(--surface); scrollbar-width:none;
|
||||
}
|
||||
.automation-tabs::-webkit-scrollbar { display:none; }
|
||||
.automation-tabs button { flex:0 0 auto; min-height:38px; padding:8px 12px; color:var(--muted); background:transparent; font-size:12px; font-weight:750; }
|
||||
.automation-tabs button.active { color:var(--accent); background:var(--accent-soft); box-shadow:inset 0 0 0 1px var(--accent-border); }
|
||||
|
||||
.mobile-nav-only { display:block; }
|
||||
.desktop-nav-only { display:none; }
|
||||
.nav-section-label,.menu-section-label { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
|
||||
.menu-section-label { display:block; padding:14px 9px 5px; }
|
||||
.more-menu-list .menu-section-label:first-child { padding-top:5px; }
|
||||
|
||||
.card-menu { align-items:center; }
|
||||
.card-primary-action { font-weight:700; }
|
||||
.card-overflow { position:relative; flex:0 0 auto; }
|
||||
.card-overflow summary {
|
||||
display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line);
|
||||
border-radius:10px; color:var(--muted); background:var(--surface-muted); cursor:pointer;
|
||||
list-style:none; font-size:16px; font-weight:800; letter-spacing:.08em;
|
||||
}
|
||||
.card-overflow summary::-webkit-details-marker { display:none; }
|
||||
.card-overflow[open] summary { color:var(--text); border-color:var(--line-strong); background:var(--surface-2); }
|
||||
.card-overflow-menu {
|
||||
position:absolute; z-index:25; right:0; bottom:calc(100% + 7px); min-width:150px; padding:6px;
|
||||
border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 14px 34px rgba(0,0,0,.28);
|
||||
}
|
||||
.card-overflow-menu button { width:100%; text-align:left; }
|
||||
.card-overflow-menu .danger { background:var(--danger-soft); }
|
||||
|
||||
.flow-save-status { display:inline-flex; align-items:center; min-height:24px; color:var(--muted); font-size:.72rem; font-weight:750; white-space:nowrap; }
|
||||
.flow-save-status::before { content:""; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--accent); }
|
||||
.flow-save-status.is-dirty { color:var(--warning); }
|
||||
.flow-save-status.is-dirty::before { background:var(--warning); }
|
||||
.flow-canvas { position:relative; width:2400px; height:1500px; transform-origin:0 0; }
|
||||
.flow-canvas .flow-nodes,.flow-canvas .flow-edges { width:2400px; height:1500px; }
|
||||
.flow-workspace-toolbar { justify-content:space-between; }
|
||||
.flow-workspace-primary-actions,.flow-zoom-controls { display:flex; align-items:center; gap:7px; min-width:0; }
|
||||
.flow-add-block-button { display:none; align-items:center; justify-content:center; gap:5px; }
|
||||
.flow-zoom-controls .icon-button { width:32px; height:32px; min-height:32px; padding:0; font-size:17px; }
|
||||
.flow-zoom-controls > span { min-width:44px; color:var(--muted); font-size:.72rem; font-weight:800; text-align:center; font-variant-numeric:tabular-nums; }
|
||||
.flow-fit-button { min-height:32px; padding:6px 9px; font-size:.75rem; }
|
||||
.flow-inspector-expand { display:none; width:34px; height:34px; padding:0; }
|
||||
|
||||
.flow-block-dialog { width:min(620px,calc(100% - 24px)); }
|
||||
.flow-block-dialog .dialog-head { padding:16px 16px 8px; }
|
||||
.flow-block-search { padding:4px 16px 10px; }
|
||||
.flow-block-library { display:grid; gap:14px; padding:0 16px 18px; }
|
||||
.flow-block-library-group { padding-left:10px; border-left:3px solid var(--line-strong); }
|
||||
.flow-block-library-group.flow-palette-trigger { border-left-color:var(--warning); }
|
||||
.flow-block-library-group.flow-palette-time { border-left-color:var(--blue); }
|
||||
.flow-block-library-group.flow-palette-timeop { border-left-color:var(--info); }
|
||||
.flow-block-library-group.flow-palette-sensor { border-left-color:var(--teal); }
|
||||
.flow-block-library-group.flow-palette-logic { border-left-color:var(--purple); }
|
||||
.flow-block-library-group.flow-palette-action { border-left-color:var(--orange); }
|
||||
.flow-block-library-group.flow-palette-haaction { border-left-color:var(--accent); }
|
||||
.flow-block-library-group h3 { margin:0 0 7px; color:var(--muted); font-size:.72rem; letter-spacing:.07em; text-transform:uppercase; }
|
||||
.flow-block-library-group > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
|
||||
.flow-block-library-group button { min-height:42px; text-align:left; }
|
||||
|
||||
/* Port stays visually small but gets a comfortable touch target. */
|
||||
.flow-editor .flow-port { width:16px; height:16px; margin-top:-8px; }
|
||||
.flow-editor .flow-port-in { left:-9px; }
|
||||
.flow-editor .flow-port-out { right:-9px; }
|
||||
.flow-editor .flow-port::after { content:""; position:absolute; inset:-11px; border-radius:50%; }
|
||||
|
||||
.flow-preview-toggle { display:none; }
|
||||
.flow-preview-details { display:flex; justify-content:space-between; gap:24px; align-items:center; width:100%; min-width:0; }
|
||||
|
||||
@media (min-width:900px) {
|
||||
.mobile-nav-only { display:none !important; }
|
||||
.desktop-nav-only { display:flex; }
|
||||
.bottom-nav {
|
||||
top:calc(var(--topbar-height,72px) + 14px); bottom:14px; left:max(14px,calc((100vw - 1440px)/2));
|
||||
display:flex; flex-direction:column; gap:2px; width:190px; max-height:calc(100dvh - var(--topbar-height,72px) - 28px);
|
||||
padding:10px; overflow-y:auto; border-radius:16px; scrollbar-width:thin;
|
||||
}
|
||||
.bottom-nav .nav-section-label { padding:10px 9px 4px; }
|
||||
.bottom-nav .nav-section-label:first-child { padding-top:3px; }
|
||||
.bottom-nav button { display:flex; align-items:center; justify-content:flex-start; gap:10px; min-height:39px; padding:8px 10px; border-radius:10px; text-align:left; }
|
||||
.bottom-nav button span { display:grid; place-items:center; flex:0 0 24px; width:24px; font-size:17px; }
|
||||
.bottom-nav button b { min-width:0; overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.bottom-nav button.active { background:var(--accent-soft); }
|
||||
main { width:min(1440px,100%); padding-left:222px; padding-right:24px; }
|
||||
}
|
||||
|
||||
@media (max-width:760px) {
|
||||
main { padding:18px 12px calc(94px + env(safe-area-inset-bottom)); }
|
||||
.desktop-nav-only { display:none !important; }
|
||||
.mobile-nav-only { display:grid; }
|
||||
.bottom-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
|
||||
.bottom-nav button { min-height:48px; }
|
||||
.bottom-nav button span { font-size:19px; }
|
||||
|
||||
.section-heading { gap:12px; margin:4px 0 14px; }
|
||||
.section-heading h1 { font-size:26px; }
|
||||
.section-heading > button,.section-heading > .section-actions,.section-heading > .section-heading-actions { width:100%; }
|
||||
.section-heading > button { min-height:44px; }
|
||||
.flow-page-actions,.section-heading-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
|
||||
.flow-page-actions button,.section-heading-actions button { width:100%; min-height:44px; }
|
||||
.automation-tabs { width:100%; margin-bottom:12px; scroll-snap-type:x proximity; }
|
||||
.automation-tabs button { flex:1 0 auto; scroll-snap-align:start; }
|
||||
|
||||
.device-card,.panel,.list-card { border-radius:14px; }
|
||||
.device-card { padding:15px; }
|
||||
.card-footer { gap:9px; }
|
||||
.card-menu { width:100%; justify-content:flex-end; }
|
||||
.card-menu > button { min-height:40px; }
|
||||
.card-primary-action { flex:1 1 auto; }
|
||||
.card-overflow summary { width:40px; height:40px; }
|
||||
|
||||
dialog:not(.auth-dialog) {
|
||||
inset:auto 0 0; width:100%; max-width:none; max-height:88dvh; margin:0;
|
||||
border-right:0; border-bottom:0; border-left:0; border-radius:18px 18px 0 0;
|
||||
overscroll-behavior:contain;
|
||||
}
|
||||
dialog:not(.auth-dialog) .dialog-head { position:sticky; top:0; z-index:5; padding-top:14px; background:var(--dialog-bg); }
|
||||
dialog:not(.auth-dialog) .dialog-head::before { content:""; position:absolute; top:6px; left:50%; width:38px; height:4px; border-radius:999px; background:var(--line-strong); transform:translateX(-50%); }
|
||||
.dialog-form { padding:14px 14px calc(14px + env(safe-area-inset-bottom)); }
|
||||
.dialog-form .form-actions { position:sticky; bottom:0; z-index:4; margin:6px -14px -14px; padding:10px 14px calc(10px + env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:color-mix(in srgb,var(--dialog-bg) 96%,transparent); backdrop-filter:blur(12px); }
|
||||
.dialog-form .form-actions > button { flex:1 1 0; min-height:44px; }
|
||||
|
||||
.history-tabs { margin-inline:-12px; padding-inline:12px; scroll-padding-inline:12px; scroll-snap-type:x proximity; }
|
||||
.history-tabs button { min-height:40px; scroll-snap-align:start; }
|
||||
.history-toolbar-panel { padding:12px; }
|
||||
|
||||
.settings-mode-tabs { position:sticky; top:calc(var(--topbar-height,64px) + 6px); z-index:8; margin-inline:-4px; background:color-mix(in srgb,var(--bg) 94%,transparent); backdrop-filter:blur(12px); }
|
||||
.settings-save-bar { bottom:calc(74px + env(safe-area-inset-bottom)); margin-inline:-4px; padding:10px; }
|
||||
.settings-save-bar span { display:none; }
|
||||
.settings-save-bar button { width:100%; min-height:44px; }
|
||||
|
||||
/* Mobile Flow: compact header, canvas-first editor and bottom-sheet inspector. */
|
||||
.flow-editor-bar {
|
||||
display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto;
|
||||
align-items:center; width:100%; gap:6px 8px; padding:7px 8px; overflow:hidden;
|
||||
}
|
||||
.flow-editor-title { grid-column:1; grid-row:1; width:100%; min-width:0; gap:8px; }
|
||||
.flow-editor-title > div { width:100%; min-width:0; }
|
||||
.flow-editor-title .eyebrow { display:none; }
|
||||
.flow-name-wrap { display:flex; width:100%; min-width:0; gap:6px; }
|
||||
.flow-name-view { min-width:0; flex:1 1 auto; }
|
||||
.flow-name-text { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.flow-editor-title input { width:100%; min-width:0; flex:1 1 auto; font-size:1rem; }
|
||||
.flow-editor-bar > .flow-save-button {
|
||||
grid-column:2; grid-row:1; align-self:stretch; min-width:0; min-height:38px;
|
||||
padding-inline:11px; white-space:nowrap;
|
||||
}
|
||||
.flow-editor-actions {
|
||||
grid-column:1 / -1; grid-row:2; display:flex; align-items:center; justify-content:space-between;
|
||||
width:100%; min-width:0; max-width:none; gap:8px; overflow:hidden;
|
||||
}
|
||||
.flow-editor-actions .flow-desktop-action,.flow-save-status,.flow-compile-status { display:none; }
|
||||
.flow-editor-actions .flow-enabled {
|
||||
display:flex; flex:0 1 auto; width:auto; min-width:0; min-height:34px;
|
||||
justify-content:flex-start; gap:7px; padding:0 4px; font-size:.78rem;
|
||||
}
|
||||
.flow-editor-actions .flow-enabled span { display:inline; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.flow-editor-actions .flow-mobile-actions-button {
|
||||
display:inline-flex; flex:0 0 auto; width:auto; min-width:96px; min-height:34px;
|
||||
margin-left:auto; padding:6px 12px; justify-content:center;
|
||||
}
|
||||
|
||||
.flow-editor-body { position:relative; display:flex; flex:1 1 auto; flex-direction:column; height:0; min-width:0; min-height:0; overflow:hidden; }
|
||||
.flow-workspace-wrap {
|
||||
order:1; display:grid; grid-template-rows:auto minmax(0,1fr) auto; flex:1 1 auto;
|
||||
width:100%; height:100%; min-width:0; min-height:0; overflow:hidden;
|
||||
}
|
||||
.flow-workspace-toolbar { display:flex; flex:0 0 auto; width:100%; min-width:0; min-height:48px; padding:6px 8px; gap:7px; justify-content:space-between; overflow:hidden; }
|
||||
.flow-workspace-primary-actions { display:flex; flex:1 1 auto; min-width:0; overflow:hidden; }
|
||||
.flow-add-block-button { display:inline-flex; min-width:0; max-width:128px; min-height:36px; padding:7px 10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.flow-selection-action,#flowSelectionCount { display:none; }
|
||||
.flow-zoom-controls { display:flex; flex:0 0 auto; margin-left:auto; gap:4px; }
|
||||
.flow-zoom-controls .icon-button { width:34px; height:34px; min-height:34px; }
|
||||
.flow-zoom-controls > span { display:none; }
|
||||
.flow-fit-button { width:34px; min-width:34px; min-height:34px; padding:0; font-size:0; }
|
||||
.flow-fit-button::before { content:"⊡"; font-size:17px; line-height:1; }
|
||||
.flow-palette { display:none !important; }
|
||||
.flow-workspace { height:100%; min-width:0; min-height:0 !important; max-height:none; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y; }
|
||||
|
||||
.flow-natural-preview { display:block; flex:0 0 auto; min-height:0; max-height:none; padding:0; overflow:hidden; }
|
||||
.flow-preview-toggle {
|
||||
display:flex; align-items:center; justify-content:space-between; width:100%; min-height:38px;
|
||||
padding:7px 10px; border:0; border-radius:0; background:var(--surface); color:var(--text); text-align:left;
|
||||
}
|
||||
.flow-preview-toggle strong { font-size:.78rem; }
|
||||
.flow-preview-toggle-icon { color:var(--muted); font-size:1rem; transition:transform .15s ease; }
|
||||
.flow-preview-details { display:none; flex-direction:column; align-items:stretch; gap:7px; max-height:32dvh; padding:8px 10px 10px; overflow:auto; }
|
||||
.flow-natural-preview.is-expanded .flow-preview-details { display:flex; }
|
||||
.flow-natural-preview.is-expanded .flow-preview-toggle { border-bottom:1px solid var(--line); }
|
||||
.flow-natural-preview.is-expanded .flow-preview-toggle-icon { transform:rotate(180deg); }
|
||||
.flow-preview-item { gap:1px; }
|
||||
.flow-natural-preview strong { font-size:.78rem; }
|
||||
.flow-natural-preview span { font-size:.76rem; }
|
||||
|
||||
.flow-inspector {
|
||||
display:none; position:fixed; inset:auto 0 0; width:100%; max-height:56dvh;
|
||||
padding:22px 14px calc(14px + env(safe-area-inset-bottom)); overflow:auto;
|
||||
border:0; border-top:1px solid var(--line-strong); border-radius:18px 18px 0 0;
|
||||
z-index:95; box-shadow:0 -14px 34px rgba(0,0,0,.3); transition:max-height .18s ease;
|
||||
}
|
||||
.flow-inspector.has-selection { display:block; }
|
||||
.flow-inspector::before { content:""; position:absolute; top:7px; left:50%; width:38px; height:4px; border-radius:999px; background:var(--line-strong); transform:translateX(-50%); }
|
||||
.flow-inspector.is-expanded { max-height:90dvh; }
|
||||
.flow-inspector-close,.flow-inspector-expand { display:inline-grid; place-items:center; }
|
||||
.flow-inspector-head { position:sticky; top:-22px; z-index:4; margin:-8px -2px 14px; padding:10px 2px 8px; background:var(--surface); }
|
||||
.flow-inspector-delete { padding-inline:10px; }
|
||||
.flow-inspector .two { grid-template-columns:1fr; }
|
||||
.flow-inspector label { font-size:.78rem; }
|
||||
.flow-inspector input,.flow-inspector select,.flow-inspector textarea { min-height:44px; }
|
||||
|
||||
.flow-block-dialog { max-height:82dvh !important; }
|
||||
.flow-block-library-group > div { grid-template-columns:1fr; }
|
||||
.flow-block-library-group button { min-height:46px; }
|
||||
|
||||
.sensor-alias-row { grid-template-columns:minmax(0,1fr) 34px; }
|
||||
.sensor-alias-entity { grid-column:1 / -1; }
|
||||
.sensor-alias-row input { grid-column:1; }
|
||||
.sensor-alias-clear { grid-column:2; }
|
||||
|
||||
/* Do not let long settings/help copy dominate small screens. */
|
||||
.settings-block { gap:14px; }
|
||||
.settings-block-head h3 { font-size:16px; }
|
||||
.settings-block-head p,.field-note { line-height:1.45; }
|
||||
}
|
||||
|
||||
@media (max-width:420px) {
|
||||
.section-heading h1 { font-size:24px; }
|
||||
.flow-editor-actions .flow-mobile-actions-button { min-width:88px; padding-inline:10px; }
|
||||
}
|
||||
|
||||
/* Readability and form consistency fixes found during the wider UX pass. */
|
||||
textarea { font:inherit; }
|
||||
textarea {
|
||||
width:100%; min-height:96px; resize:vertical; border:1px solid var(--line); border-radius:12px;
|
||||
outline:0; padding:10px 12px; color:var(--text); background:var(--input-bg); line-height:1.45;
|
||||
}
|
||||
textarea:focus { border-color:var(--accent); outline:2px solid color-mix(in srgb,var(--accent) 18%,transparent); outline-offset:1px; }
|
||||
.flow-empty-hint button { pointer-events:auto; margin-top:7px; justify-self:center; }
|
||||
#controlPlan .plan-card>p { font-size:11.5px; line-height:1.45; }
|
||||
#controlPlan .plan-events li { font-size:10.5px; line-height:1.4; }
|
||||
#controlPlan .plan-rule-summary strong { font-size:11px; }
|
||||
#controlPlan .plan-rule-summary small { font-size:10px; }
|
||||
#controlPlan .plan-card-head .eyebrow { font-size:9px; }
|
||||
|
||||
@media (prefers-reduced-motion:reduce) {
|
||||
*,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
|
||||
}
|
||||
.flow-card[data-flow-card-id] { cursor:pointer; }
|
||||
.flow-card[data-flow-card-id]:focus-visible { outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset:2px; }
|
||||
.flow-card[data-flow-card-id] button,.flow-card[data-flow-card-id] details { cursor:pointer; }
|
||||
.flow-generated-card { border-left:3px solid var(--accent-border); }
|
||||
.flow-generated-card .card-footer > small { color:var(--accent); }
|
||||
|
||||
|
||||
/* 0.11.4 production layout guards and in-app chart preview. */
|
||||
html,body { max-width:100%; overflow-x:clip; }
|
||||
main,.view { min-width:0; max-width:100%; }
|
||||
.flow-info-panel,.flow-info-panel > div { min-width:0; }
|
||||
.flow-info-panel > .badge { flex:0 1 auto; max-width:100%; white-space:normal; overflow-wrap:anywhere; text-align:center; }
|
||||
|
||||
body.flow-editor-open { width:100%; height:100vh; height:100dvh; overflow:hidden; overscroll-behavior:none; }
|
||||
.flow-editor { width:100vw; width:100dvw; height:100vh; height:100dvh; max-width:100%; overflow:hidden; }
|
||||
.flow-editor-bar,.flow-editor-title,.flow-editor-actions,.flow-editor-body,.flow-workspace-wrap,.flow-workspace-toolbar { min-width:0; max-width:100%; }
|
||||
|
||||
.chart-title-row > div:first-child { min-width:0; }
|
||||
.chart-title-actions { display:flex; align-items:center; gap:7px; flex:0 0 auto; }
|
||||
.chart-fullscreen-button { min-width:34px; height:32px; padding:0 9px; border:1px solid var(--line); background:var(--surface-muted); color:var(--text-soft); font-size:16px; line-height:1; }
|
||||
.chart-fullscreen-button:hover { background:var(--surface-2); }
|
||||
body.chart-fullscreen-open { overflow:hidden; }
|
||||
body.chart-fullscreen-open::before { content:""; position:fixed; inset:0; z-index:139; background:rgba(0,0,0,.68); backdrop-filter:blur(3px); }
|
||||
.history-chart-card.chart-fullscreen-fallback {
|
||||
position:fixed; left:50%; top:50%; z-index:140;
|
||||
width:min(1200px,calc(100vw - 28px)); height:min(820px,calc(100dvh - 28px)); max-width:none;
|
||||
margin:0; padding:14px; transform:translate(-50%,-50%);
|
||||
display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:8px; overflow:hidden;
|
||||
border:1px solid var(--line-strong); border-radius:16px; background:var(--surface);
|
||||
box-shadow:0 28px 90px rgba(0,0,0,.58);
|
||||
}
|
||||
.history-chart-card.chart-fullscreen-fallback .chart-title-row { margin:0; }
|
||||
.history-chart-card.chart-fullscreen-fallback .chart-title-row p,
|
||||
.history-chart-card.chart-fullscreen-fallback .chart-hover-hint { display:none; }
|
||||
.history-chart-card.chart-fullscreen-fallback .chart-wrap { height:100%; min-height:0; overflow:auto; border:1px solid var(--line); border-radius:10px; background:var(--surface-muted); }
|
||||
.history-chart-card.chart-fullscreen-fallback .legend { max-height:88px; margin:0; overflow:auto; }
|
||||
|
||||
@media (max-width:760px) {
|
||||
body:not(.flow-editor-open) .bottom-nav { position:fixed; right:0; bottom:0; left:0; z-index:60; max-width:100vw; overflow-x:hidden; }
|
||||
.flow-info-panel { flex-direction:column; align-items:flex-start; gap:12px; padding:16px; overflow:hidden; }
|
||||
.flow-info-panel > div { width:100%; }
|
||||
.flow-info-panel > .badge { align-self:flex-start; text-align:left; }
|
||||
.flow-shared-settings-link { width:100%; max-width:100%; white-space:normal; text-align:left; }
|
||||
.automation-tabs { width:100%; min-width:0; }
|
||||
|
||||
.chart-title-row { gap:8px; }
|
||||
.chart-title-actions { width:100%; justify-content:flex-end; }
|
||||
.chart-fullscreen-button { min-height:36px; height:36px; }
|
||||
.history-chart-card.chart-fullscreen-fallback { width:calc(100vw - 12px); height:calc(100dvh - 18px); padding:9px; border-radius:13px; }
|
||||
.history-chart-card.chart-fullscreen-fallback .chart-title-row { flex-direction:row; align-items:center; gap:8px; }
|
||||
.history-chart-card.chart-fullscreen-fallback .chart-title-row > div:first-child { flex:1 1 auto; min-width:0; }
|
||||
.history-chart-card.chart-fullscreen-fallback .chart-title-row h3 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
|
||||
.history-chart-card.chart-fullscreen-fallback .chart-title-actions { width:auto; flex:0 0 auto; }
|
||||
.history-chart-card.chart-fullscreen-fallback .legend { max-height:70px; }
|
||||
}
|
||||
|
||||
@media (max-width:560px) {
|
||||
.chart-title-actions { gap:5px; }
|
||||
.chart-zoom-controls button { height:36px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user