Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit fe0d1c6

Browse files
committed
Fixed Project Pane dropdown menu alignment.
1 parent e902dc1 commit fe0d1c6

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/extensions/default/RecentProjects/styles/styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
/* TODO: style the dropdown content */
5151
#project-dropdown.dropdown-menu {
5252
position: absolute;
53+
54+
/* offset for better alignment with the button */
55+
margin-top: -1px;
56+
margin-left: 1px;
57+
5358
display: block;
5459
max-width: none;
5560
z-index: 100;

src/styles/brackets_patterns_override.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,10 @@ a:focus {
292292

293293
// Menu dropdown appearance
294294
.dropdown-menu {
295-
top: 34px; // Offset from top of menubar item
295+
// Offset for better alignment with button
296+
top: 34px;
296297
margin-top: 0;
298+
margin-left: 1px;
297299

298300
// Fix for #4593: don't let narrow parent (menubar item) cause text wrap at the float boundary between
299301
// the menu item label and keyboard shortcut. This takes away the "gotta get narrower" pressure.

0 commit comments

Comments
 (0)