Skip to content

Commit dcb4004

Browse files
committed
fix: sidebar alignment
1 parent 5ac1fe2 commit dcb4004

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

src/Visualizer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ const Flow: React.FC<FlowProps> = (props: FlowProps) => {
327327
subheadline={"Available datasets :point_down:"}
328328
onClose={() => { setUnknownDatasetOn(false) }} />}
329329
{databaseMenuPopupOn && <DatabaseMenuSidebar
330-
headline={"Choose a dataset"}
330+
headline={"Datasets"}
331331
onClose={() => { setDatabaseMenuPopupOn(false) }} />}
332332
</div>
333333
);

src/Visualizer/style/database-menu-sidebar.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
max-width: 500px;
1616
height: 100%;
1717
z-index: 200000;
18-
padding: 24px;
18+
padding: 24px 24px 24px;
1919
overflow-y: auto;
2020
background-color: #FFF;
2121
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
@@ -31,6 +31,7 @@
3131
font-size: 28px;
3232
font-weight: 700;
3333
padding-right: 40px;
34+
line-height: 1;
3435
}
3536

3637
&__subheadline {
@@ -50,7 +51,7 @@
5051

5152
&__close-icon {
5253
position: absolute;
53-
top: 20px;
54+
top: 28px;
5455
right: 20px;
5556
cursor: pointer;
5657
z-index: 10;
@@ -86,7 +87,7 @@
8687
.database-tile__description {
8788
max-height: 500px;
8889
opacity: 1;
89-
padding: 12px 20px;
90+
padding: 16px 20px 16px 20px;
9091
pointer-events: auto;
9192
}
9293
}
@@ -101,10 +102,6 @@
101102
font-family: 'Monaco', 'Courier New', monospace;
102103
}
103104

104-
&__content {
105-
margin-left: 16px;
106-
}
107-
108105
&__name {
109106
margin: 0 0 8px 0;
110107
font-size: 24px;
@@ -166,7 +163,7 @@
166163
border: 2px solid #4A90E2;
167164
border-top: none;
168165
border-radius: 0 0 12px 12px;
169-
padding: 0 20px;
166+
padding: 0 20px 0 36px;
170167
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
171168
pointer-events: none;
172169

0 commit comments

Comments
 (0)