Skip to content

Commit

Permalink
Fix Sidebar Button Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Dec 11, 2023
1 parent 65e1b19 commit ef66cb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion apps/zui/src/js/components/TabBar/TabBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const BG = styled.div`
align-items: center;
height: 100%;
grid-area: tabs;
gap: 10px;
-webkit-app-region: drag;
`

Expand Down Expand Up @@ -72,13 +73,16 @@ export default function TabBar() {
useEffect(() => calcWidth(), [rect.width])
const sidebarCollapsed = !useSelector(Appearance.sidebarIsOpen)
const rightbarCollapse = !useSelector(Appearance.secondarySidebarIsOpen)
const paddingInlineEnd = rightbarCollapse ? 20 : 10
const paddingInlineStart = sidebarCollapsed ? 20 : 0
return (
<BG style={{paddingRight: rightbarCollapse ? 20 : 10}}>
<BG style={{paddingInlineStart, paddingInlineEnd}}>
{sidebarCollapsed && global.env.isMac && (
<TrafficLightBG>
<SidebarToggleButton />
</TrafficLightBG>
)}
{sidebarCollapsed && !global.env.isMac && <SidebarToggleButton />}
<Container ref={ref} onMouseLeave={ctl.onMouseLeave}>
{ids.map((id: string) => {
const tabModel = tab(id, lakes, pools, queryIdNameMap, lakeId)
Expand Down
1 change: 0 additions & 1 deletion apps/zui/src/plugins/brimcap/packets/menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export function activatePacketsMenuItem() {
menus.extend(MENU_NAME, (menu: MenuItem[]) => {
const index = menu.findIndex((item) => item.id == "export-results")
menu.splice(index, 0, packetsMenuItem)
console.log(index, menu)
return menu
})
}

0 comments on commit ef66cb7

Please sign in to comment.