[ENG-1874] Always show windows top bar options (#2692)

always show windows top bar options
This commit is contained in:
ameer2468
2024-08-27 16:57:07 +03:00
committed by GitHub
parent 4b787cc8f9
commit 7eae1c2e58
2 changed files with 3 additions and 32 deletions

View File

@@ -66,7 +66,6 @@ export default ({ options }: TopBarChildrenProps) => {
/>
))
)}
{os === 'windows' && <WindowsControls windowSize={windowSize} />}
</div>
<TopBarMobile
toolOptions={options}
@@ -74,6 +73,7 @@ export default ({ options }: TopBarChildrenProps) => {
windowSize <= 1279 && (toolsNotSmFlex?.length as number) > 0 ? 'flex' : 'hidden'
}
/>
{os === 'windows' && <WindowsControls windowSize={windowSize} />}
</div>
);
};
@@ -193,7 +193,7 @@ export function WindowsControls({ windowSize }: { windowSize: number }) {
getWindowState().catch(console.error);
}, [getWindowState, windowSize]);
return (
<div className="mx-1 hidden items-center xl:flex">
<div className="mx-1 ml-4 flex items-center">
<TopBarButton
className="mx-2"
rounding="both"

View File

@@ -49,36 +49,7 @@ export const Component = () => {
</div>
}
center={<SearchBar redirectToSearch />}
right={
os === 'windows' && <TopBarOptions />
// <TopBarOptions
// options={[
// [
// {
// toolTipLabel: 'Spacedrop',
// onClick: () => {},
// icon: <Broadcast className={TOP_BAR_ICON_STYLE} />,
// individual: true,
// showAtResolution: 'sm:flex'
// },
// {
// toolTipLabel: 'Key Manager',
// onClick: () => {},
// icon: <Key className={TOP_BAR_ICON_STYLE} />,
// individual: true,
// showAtResolution: 'sm:flex'
// },
// {
// toolTipLabel: 'Overview Display Settings',
// onClick: () => {},
// icon: <SlidersHorizontal className={TOP_BAR_ICON_STYLE} />,
// individual: true,
// showAtResolution: 'sm:flex'
// }
// ]
// ]}
// />
}
right={os === 'windows' && <TopBarOptions />}
/>
<div className="mt-4 flex flex-col gap-3 pt-3">
<OverviewSection>