Completely hide tab close button when dirty state is highlighted in top border#64718
Merged
bpasero merged 2 commits intomicrosoft:masterfrom Dec 11, 2018
usernamehw:tab_close
Merged
Completely hide tab close button when dirty state is highlighted in top border#64718bpasero merged 2 commits intomicrosoft:masterfrom usernamehw:tab_close
bpasero merged 2 commits intomicrosoft:masterfrom
usernamehw:tab_close
Conversation
Member
|
I am not sure this requires another setting, can we be sure people want this? |
Contributor
Author
|
We can merge and wait for complaints. |
Contributor
Author
|
It's not like people would actually upvote the issue #64684. |
bpasero
requested changes
Dec 10, 2018
Member
bpasero
left a comment
There was a problem hiding this comment.
I would prefer the CSS to be just more explicit via a :not() pseudo:
.monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-off.dirty:not(.dirty-border-top) {
background-repeat: no-repeat;
background-position-y: center;
background-position-x: calc(100% - 6px); /* to the right of the tab label */
padding-right: 28px; /* make room for dirty indication when we are running without close button */
}
.vs .monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-off.dirty:not(.dirty-border-top) {
background-image: url('close-dirty.svg');
}
.vs-dark .monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-off.dirty:not(.dirty-border-top),
.hc-black .monaco-workbench > .part.editor > .content .editor-group-container > .title .tabs-container > .tab.close-button-off.dirty:not(.dirty-border-top) {
background-image: url('close-dirty-inverse.svg');
}
This avoids having to repeat CSS rules that have been defined elsewhere already.
Contributor
Author
|
No selector for |
Member
|
Thanks 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #64684