Skip to content

Commit f42668f

Browse files
authored
fix: panel and dropdown overlap (CircuitVerse#47)
fixed panel and dropdown overlap The elements panel and timing diagram were overlapping with dropdowns because of z-index being 100, changed the z-index and now the dropdowns are behaving as expected. Fixes: CircuitVerse#43
1 parent 043093b commit f42668f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Navbar/Navbar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249

250250
.draggable-panel-css {
251251
border-radius: 5px;
252-
z-index: 100;
252+
z-index: 70;
253253
transition: background 0.5s ease-out;
254254
position: fixed;
255255
}

src/simulator/src/ux.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,8 @@ function setupPanelListeners(panelSelector) {
769769
)
770770
// Current Panel on Top
771771
$(panelSelector).on('mousedown', () => {
772-
$(`.draggable-panel:not(${panelSelector})`).css('z-index', '99')
773-
$(panelSelector).css('z-index', '100')
772+
$(`.draggable-panel:not(${panelSelector})`).css('z-index', '70')
773+
$(panelSelector).css('z-index', '71')
774774
})
775775
var minimized = false
776776
$(headerSelector).on('dblclick', () =>

src/styles/css/main.stylesheet.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ input[type='text']:focus {
322322

323323
.draggable-panel-css {
324324
border-radius: 5px;
325-
z-index: 100;
325+
z-index: 70;
326326
transition: background 0.5s ease-out;
327327
position: fixed;
328328
}
@@ -737,7 +737,7 @@ div.icon img {
737737

738738
.timing-diagram-panel {
739739
border-radius: 5px;
740-
z-index: 100;
740+
z-index: 70;
741741
transition: background 0.5s ease-out;
742742
position: fixed;
743743
cursor: pointer;

0 commit comments

Comments
 (0)