mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-10 05:53:05 +09:00
fix(ui): give App Map canvas a definite height so React Flow renders
This commit is contained in:
1 parent
b95c516c76
commit
545c2f0607
1 file changed
+16
-4
@@ -64,8 +64,9 @@
|
||||
}
|
||||
|
||||
&__canvas {
|
||||
flex: 1 1 auto;
|
||||
min-height: 480px;
|
||||
// geometry: React Flow sizes to 100% of its parent, so the canvas needs a
|
||||
// definite height (a flex/min-height box resolves to 0 and renders blank)
|
||||
height: clamp(360px, 65dvh, 760px);
|
||||
border: 1px solid $border-subtle;
|
||||
border-radius: $radius-card;
|
||||
background: $bg-card;
|
||||
@@ -76,8 +77,19 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.react-flow__minimap {
|
||||
background: var(--bg-elevated);
|
||||
// Theme React Flow's default (light) chrome via its own CSS variables.
|
||||
--xy-minimap-background-color-default: var(--bg-elevated);
|
||||
--xy-minimap-mask-background-color-default: rgba(0, 0, 0, 0.45);
|
||||
--xy-controls-button-background-color-default: var(--bg-elevated);
|
||||
--xy-controls-button-background-color-hover-default: var(--bg-hover);
|
||||
--xy-controls-button-color-default: var(--text-primary);
|
||||
--xy-controls-button-border-color-default: var(--border-subtle);
|
||||
|
||||
// The minimap covers a third of the canvas on a phone.
|
||||
@media (max-width: 639px) {
|
||||
.react-flow__minimap {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user