-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue where status bar can overflow without affecting notification beak #155649
Changes from 6 commits
895e23f
623f652
ae5f722
c797f53
74b0dac
19e1f5a
9cb73a2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
height: 22px; | ||
font-size: 12px; | ||
display: flex; | ||
overflow: visible; | ||
overflow: hidden; | ||
transition: background-color 0.35s ease-out; | ||
} | ||
|
||
|
@@ -47,16 +47,23 @@ | |
vertical-align: top; | ||
max-width: 40vw; | ||
} | ||
|
||
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak { | ||
position: relative; | ||
} | ||
|
||
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak:before { | ||
.monaco-workbench .part.statusbar > .items-container > .statusbar-item > .beak-div-show { | ||
content: ''; | ||
position: absolute; | ||
left: 10px; | ||
left: calc(50% - 5px); /* centering relative to parent */ | ||
top: -5px; | ||
width: 10px; | ||
height: 5px; | ||
} | ||
|
||
.monaco-workbench .part.statusbar > .items-container > .statusbar-item > .beak-div-show:before { | ||
nirabhromakhal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
content: ''; | ||
position: fixed; | ||
color: rgb(0, 122, 204); | ||
border-bottom-width: 5px; | ||
border-bottom-style: solid; | ||
border-left: 5px solid transparent; | ||
|
@@ -83,7 +90,7 @@ | |
} | ||
|
||
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.right.last-visible-item { | ||
padding-right: 7px; /* Add padding to the most right status bar item */ | ||
margin-right: 7px; /* Add padding to the most right status bar item */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need to change to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The centering of the beak is done now based on the width of the status item. |
||
} | ||
|
||
/* Tweak appearance for items with background to improve hover feedback */ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than having a
beak-div-show
, why not add a CSS class name to the beak container (status-item-beak-container
) and then use the existinghas-beak
rule to make this work, e.g.:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed a line-break (empty line) by mistake, should I commit again (with the line break)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.