fix: icon slight proportion change
This commit is contained in:
@@ -172,13 +172,29 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.window-titlebar-sidebar-icon::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
left: 33.3333%;
|
||||
width: 1.5px;
|
||||
transform: translateX(-50%);
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
.window-titlebar-sidebar-pane {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 50%;
|
||||
width: 33.3333%;
|
||||
height: 100%;
|
||||
background-color: currentColor;
|
||||
transition: opacity 120ms ease;
|
||||
}
|
||||
|
||||
.window-titlebar-sidebar-icon.is-inactive .window-titlebar-sidebar-pane {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.window-titlebar-panel-icon {
|
||||
@@ -191,6 +207,17 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.window-titlebar-panel-icon::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 66.6667%;
|
||||
height: 1.5px;
|
||||
transform: translateY(-50%);
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
.window-titlebar-panel-pane {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
@@ -198,6 +225,11 @@
|
||||
width: 100%;
|
||||
height: 33.3333%;
|
||||
background-color: currentColor;
|
||||
transition: opacity 120ms ease;
|
||||
}
|
||||
|
||||
.window-titlebar-panel-icon.is-inactive .window-titlebar-panel-pane {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.window-titlebar-action-button:hover {
|
||||
|
||||
@@ -412,7 +412,11 @@ export const WindowTitleBar: React.FC = () => {
|
||||
onClick={toggleSidebar}
|
||||
title={`${sidebarVisible ? 'Hide' : 'Show'} Sidebar (Ctrl+B)`}
|
||||
>
|
||||
<span className="window-titlebar-sidebar-icon" data-shape="frame-square" aria-hidden="true">
|
||||
<span
|
||||
className={`window-titlebar-sidebar-icon ${sidebarVisible ? 'is-active' : 'is-inactive'}`}
|
||||
data-shape="frame-square"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<span className="window-titlebar-sidebar-pane" data-shape="left-half" />
|
||||
</span>
|
||||
</button>
|
||||
@@ -422,7 +426,11 @@ export const WindowTitleBar: React.FC = () => {
|
||||
onClick={togglePanel}
|
||||
title={`${panelVisible ? 'Hide' : 'Show'} Panel (Ctrl+J)`}
|
||||
>
|
||||
<span className="window-titlebar-panel-icon" data-shape="frame-square" aria-hidden="true">
|
||||
<span
|
||||
className={`window-titlebar-panel-icon ${panelVisible ? 'is-active' : 'is-inactive'}`}
|
||||
data-shape="frame-square"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<span className="window-titlebar-panel-pane" data-shape="bottom-half" />
|
||||
</span>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user