Skip to content

Commit

Permalink
[theming] fix #6783: don't render an icon element if an icon is not set
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Dec 27, 2019
1 parent 7117ebe commit 0de8880
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/browser/style/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}

.p-TabBar[data-orientation='horizontal'] .p-TabBar-tab .theia-tab-icon-label,
.p-TabBar-tab.p-mod-drag-image .theia-tab-icon-label {
.p-TabBar-tab.p-mod-drag-image .theia-tab-icon-label {
display: flex;
line-height: var(--theia-content-line-height);
align-items: center;
Expand Down Expand Up @@ -172,7 +172,8 @@ body.theia-editor-highlightModifiedTabs
padding: 2px 14px 0 0;
}

.p-TabBar .p-TabBar-tabIcon {
.p-TabBar .p-TabBar-tabIcon,
.p-TabBar-tab.p-mod-drag-image .p-TabBar-tabIcon {
width: 15px;
line-height: 1.7;
font-size: 12px;
Expand Down Expand Up @@ -236,9 +237,8 @@ body.theia-editor-highlightModifiedTabs
background-image: var(--theia-icon-close);
}

.p-TabBar.theia-app-centers .p-TabBar-tab > .p-TabBar-tabIcon.no-icon,
.p-TabBar-tab.p-mod-drag-image > .p-TabBar-tabIcon.no-icon {
display: none;
.p-TabBar-tabIcon.no-icon {
display: none !important;
}

/*-----------------------------------------------------------------------------
Expand Down

0 comments on commit 0de8880

Please sign in to comment.