Skip to content

Commit 96003db

Browse files
committed
împroved panel style
1 parent fb8bfc2 commit 96003db

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

dashi/src/app/Panel.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,23 @@ const panelContainerStyle: CSSProperties = {
1111
flexDirection: "column",
1212
width: 400,
1313
height: 400,
14-
padding: 5,
1514
border: "1px gray solid",
1615
};
1716

1817
const panelHeaderStyle: CSSProperties = {
18+
flexGrow: 0,
1919
display: "flex",
20-
flexDirection: "column",
20+
flexDirection: "row",
2121
width: "100%",
2222
textAlign: "center",
23+
background: "lightgray",
24+
padding: "2px 4px 2px 4px",
25+
};
26+
27+
const panelContentStyle: CSSProperties = {
28+
width: "100%",
29+
flexGrow: 1,
30+
padding: 2,
2331
};
2432

2533
interface PanelProps {
@@ -58,7 +66,7 @@ function Panel({ panelModel, panelState, onPropertyChange }: PanelProps) {
5866
return (
5967
<div style={panelContainerStyle}>
6068
<div style={panelHeaderStyle}>{panelModel.title}</div>
61-
{panelElement}
69+
<div style={panelContentStyle}>{panelElement}</div>
6270
</div>
6371
);
6472
}

0 commit comments

Comments
 (0)