Skip to content

Commit 5dfdd19

Browse files
authored
fix: align graph sizes (#261)
1 parent 05af4a0 commit 5dfdd19

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/Graphs/Graph.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
height: 600px;
44
border: 1px solid var(--sapList_BorderColor, #ddd);
5-
border-radius: 8px;
5+
border-radius: 16px;
66
overflow: hidden;
77
background-color: var(--sapBackgroundColor, #fafafa);
88
font-family: var(--sapFontFamily);
@@ -20,6 +20,7 @@
2020
gap: 1rem;
2121
align-items: center;
2222
color: var(--sapTextColor, #222);
23+
font-size: var(--sapFontSize);
2324
}
2425

2526
.graphToolbar {

src/components/Graphs/Legend.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.legendContainer {
22
padding: 1rem;
3-
min-width: 240px;
3+
min-width: 220px;
44
max-width: 300px;
55
max-height: 280px;
66
border: 1px solid var(--sapList_BorderColor, #ccc);
@@ -11,6 +11,7 @@
1111
overflow: auto;
1212
align-self: flex-start;
1313
color: var(--sapTextColor, #222);
14+
font-size: var(--sapFontSize);
1415
}
1516

1617
.legendTitle {
@@ -21,10 +22,13 @@
2122
.legendRow {
2223
display: flex;
2324
align-items: center;
24-
margin-bottom: 8px;
2525
color: var(--sapTextColor, #222);
2626
}
2727

28+
.legendRow:not(:last-child) {
29+
margin-bottom: 8px;
30+
}
31+
2832
.legendColorBox {
2933
width: 16px;
3034
height: 16px;

0 commit comments

Comments
 (0)