updated realTimeViz panel style
This commit is contained in:
parent
4a05bb8cdf
commit
e23b580a14
|
@ -326,7 +326,7 @@ export const DraggableWidget = ({
|
|||
? `calc(${canvasDimensions.width * 0.16}px - 2px)` // For top/bottom panels, set width
|
||||
: undefined, // Don't set width if it's left or right
|
||||
height: ["left", "right"].includes(widget.panel)
|
||||
? `calc(${canvasDimensions.height * 0.3}px - 2px)` // For left/right panels, set height
|
||||
? `calc(${canvasDimensions.height * 0.25}px - 2px)` // For left/right panels, set height
|
||||
: undefined, // Don't set height if it's top or bottom
|
||||
}}
|
||||
ref={chartWidget}
|
||||
|
|
|
@ -134,9 +134,10 @@ const Panel: React.FC<PanelProps> = ({
|
|||
case "top":
|
||||
case "bottom":
|
||||
return {
|
||||
minWidth: "200px", // Minimum width constraint
|
||||
// minWidth: "200px", // Minimum width constraint
|
||||
width: `calc(100% - ${
|
||||
(leftActive ? panelSizeWidth : 0) + (rightActive ? panelSizeWidth : 0)
|
||||
(leftActive ? panelSizeWidth : 0) +
|
||||
(rightActive ? panelSizeWidth : 0)
|
||||
}px)`,
|
||||
minHeight: "200px", // Minimum height constraint
|
||||
height: `${panelSizeHeight - 2}px`, // Subtracting for border or margin
|
||||
|
@ -150,9 +151,10 @@ const Panel: React.FC<PanelProps> = ({
|
|||
return {
|
||||
minWidth: "200px", // Minimum width constraint
|
||||
width: `${panelSizeWidth - 2}px`, // Subtracting for border or margin
|
||||
minHeight: "200px", // Minimum height constraint
|
||||
// minHeight: "200px", // Minimum height constraint
|
||||
height: `calc(100% - ${
|
||||
(topActive ? panelSizeHeight : 0) + (bottomActive ? panelSizeHeight : 0)
|
||||
(topActive ? panelSizeHeight : 0) +
|
||||
(bottomActive ? panelSizeHeight : 0)
|
||||
}px)`,
|
||||
top: topActive ? `${panelSizeHeight}px` : "0",
|
||||
bottom: bottomActive ? `${panelSizeHeight}px` : "0",
|
||||
|
|
Loading…
Reference in New Issue