Skip to content

Commit

Permalink
- Removes dependecy on windows for the design
Browse files Browse the repository at this point in the history
  • Loading branch information
duduBTW committed Nov 1, 2024
1 parent c7c02fa commit e4b5dcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderer/src/scenes/main-scene/MainScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const MainScene: Component = () => {
<Match when={os() === "darwin"}>
<MacNav />
</Match>
<Match when={os() === "win32"}>
<Match when={os() !== "darwin"}>
<WindownsNav />
</Match>
</Switch>
Expand All @@ -30,7 +30,7 @@ const MainScene: Component = () => {
class="song relative flex flex-1 items-center justify-center"
classList={{
"m-2 rounded-3xl": os() === "darwin",
"mt-0 m-2": os() === "win32",
"mt-0 m-2": os() !== "darwin",
}}
>
<SongDetail />
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/scenes/main-scene/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export const Sidebar: Component = () => {
onClick={toggleSidebarShow}
class="no-drag fixed z-10"
classList={{
// Windows - Offset for the nav on the top
"top-[44px] left-[16px]": os() === "win32",
// Windows/Linux - Offset for the nav on the top
"top-[44px] left-[16px]": os() !== "darwin",

// Mac - Offset for the traffic lights on the left
"top-[16px] left-[86px]": os() === "darwin",
Expand Down

0 comments on commit e4b5dcf

Please sign in to comment.