Skip to content

Commit

Permalink
Fix sidebar width
Browse files Browse the repository at this point in the history
  • Loading branch information
selinali2010 committed Feb 3, 2023
1 parent c4a6c4a commit 8eb8527
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
16 changes: 4 additions & 12 deletions src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@ const AppContent = () => {

return (
<>
{isLoading ? (
<div className="center full row">
<h1>Loading...</h1>
</div>
) : (
<>
<SideBar />
<MainContent />
<PresetsBar />
<FrequencyResponseChart />
</>
)}
<SideBar />
<MainContent />
<PresetsBar />
<FrequencyResponseChart />
{globalError && (
<PrereqMissingModal
isLoading={isLoading}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/styles/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body {
grid-template-areas:
'side-bar main-content presets-bar'
'graph-wrapper graph-wrapper graph-wrapper';
grid-template-columns: max-content 1fr $preset-bar-width;
grid-template-columns: minmax($sidebar-width, max-content) 1fr $preset-bar-width;
grid-template-rows: $equalizer-height 1fr;
gap: $spacing-s;
}
Expand Down
1 change: 1 addition & 0 deletions src/renderer/styles/_constant.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$preset-bar-width: 328px;
$sidebar-width: 150px;
$title-bar-height: 28px;

$band-height: 498px;
Expand Down

0 comments on commit 8eb8527

Please sign in to comment.