Skip to content

Commit 48100c2

Browse files
Fix CSS for Circuit Editor Context Menu (#2335)
The context menu CSS was incorrectly placed under the qs-circuit-panel class. The context menu is an overlay and so doesn't live under the circuit panel. This fixes the issue.
1 parent 30fe6a6 commit 48100c2

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

npm/qsharp/ux/qsharp-circuit.css

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -281,28 +281,6 @@
281281
flex-direction: row;
282282
}
283283

284-
.context-menu {
285-
position: absolute;
286-
background-color: var(--vscode-menu-background, #ffffff);
287-
border: 1px solid var(--vscode-menu-border, #cccccc);
288-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
289-
z-index: 1000;
290-
padding: 5px 0;
291-
border-radius: 4px;
292-
}
293-
294-
.context-menu-option {
295-
padding: 8px 12px;
296-
cursor: pointer;
297-
white-space: nowrap;
298-
color: var(--vscode-menu-foreground, #000000);
299-
}
300-
301-
.context-menu-option:hover {
302-
background-color: var(--vscode-menu-selectionBackground, #f0f0f0);
303-
color: var(--vscode-menu-selectionForeground, #000000);
304-
}
305-
306284
.container {
307285
display: flex;
308286
}
@@ -391,6 +369,28 @@
391369
}
392370
}
393371

372+
.context-menu {
373+
position: absolute;
374+
background-color: var(--vscode-menu-background, #ffffff);
375+
border: 1px solid var(--vscode-menu-border, #cccccc);
376+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
377+
z-index: 1000;
378+
padding: 5px 0;
379+
border-radius: 4px;
380+
}
381+
382+
.context-menu-option {
383+
padding: 8px 12px;
384+
cursor: pointer;
385+
white-space: nowrap;
386+
color: var(--vscode-menu-foreground, #000000);
387+
}
388+
389+
.context-menu-option:hover {
390+
background-color: var(--vscode-menu-selectionBackground, #f0f0f0);
391+
color: var(--vscode-menu-selectionForeground, #000000);
392+
}
393+
394394
.prompt-overlay {
395395
position: fixed;
396396
top: 0;

0 commit comments

Comments
 (0)