Skip to content

Commit 6ac35a5

Browse files
author
danil-nizamov
committed
updated navbar styles
1 parent 79c1646 commit 6ac35a5

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

diagram.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function renderTable(svg, table, schema, selectedTableId, selectedColId, onSelec
9999
title.textContent = table.name; g.appendChild(title);
100100

101101
// HEADER SEPARATOR
102-
g.appendChild(createSvg('line', { x1: x, y1: y + DIAGRAM.HEADER_H, x2: x + width, y2: y + DIAGRAM.HEADER_H, stroke: '#e4e4e8' }));
102+
g.appendChild(createSvg('line', { x1: x + 8, y1: y + DIAGRAM.HEADER_H, x2: x + width - 8, y2: y + DIAGRAM.HEADER_H, stroke: '#d1d5db', 'stroke-width': '0.5' }));
103103

104104
// DRAG BUTTON (the ONLY drag handle)
105105
const btnSize = 16;

solution.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,9 @@
4141
],
4242
"indexes": [],
4343
"position": {
44-
"x": 377,
45-
"y": -83
46-
},
47-
"color": "white"
44+
"x": 603,
45+
"y": 125
46+
}
4847
},
4948
{
5049
"id": "tbl_orders",
@@ -78,10 +77,10 @@
7877
"uniqueConstraints": [],
7978
"indexes": [],
8079
"position": {
81-
"x": 92,
82-
"y": -65
80+
"x": 85,
81+
"y": -102
8382
},
84-
"color": "red"
83+
"color": "blue"
8584
}
8685
],
8786
"foreignKeys": [

style.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
}
7272

7373
header{
74-
display:flex;align-items:baseline;gap:1rem;padding:.5rem 1rem; /* Reduced from .75rem to .5rem */
74+
display:flex;align-items:center;gap:1rem;padding:.5rem 1rem; /* Reduced from .75rem to .5rem */
7575
border-bottom:1px solid var(--stroke);
7676
background:var(--box)
7777
}
@@ -322,10 +322,11 @@
322322

323323
/* --- help button alignment --- */
324324
.spacer { flex: 1; }
325-
#btn-help { margin-left: auto; }
325+
#btn-help { margin-left: auto; margin-top: 0; }
326326

327327
.as-button {
328-
display: inline-block;
328+
display: inline-flex;
329+
align-items: center;
329330
padding: .5rem .75rem;
330331
border: 1px solid #e2e8f0;
331332
border-radius: .5rem;

0 commit comments

Comments
 (0)