Skip to content

Commit

Permalink
Merge pull request #51 from gov4git/pin-head
Browse files Browse the repository at this point in the history
Pin header
  • Loading branch information
dworthen committed Nov 29, 2023
2 parents dc20841 + 2aa7fca commit 18ae18f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-readers-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gov4git-desktop-app': patch
---

Pin header
10 changes: 5 additions & 5 deletions src/renderer/src/App/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ html {
}

html {
height: 100%;
height: 100vh;
}
body {
min-height: 100%;
height: 100vh;
}

#root {
min-height: 100%;
height: 100vh;
/* min-height: 100%; */
/* overflow-x: hidden; */
background-color: #f3f3f3;
}

#fluent-provider {
min-height: 100%;
/* overflow-x: hidden; */
height: 100vh;
overflow-y: hidden;
background-color: transparent;
}

Expand Down
5 changes: 1 addition & 4 deletions src/renderer/src/components/SiteNav.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ export const useSiteNavStyles = makeStyles({
position: 'sticky',
top: '0',
width: '75px',
maxHeight: '100vh',
// height of the header is 60px
minHeight: 'calc(100vh - 60px)',
height: 'calc(100vh - 60px)',
zIndex: '100',
flexBasis: 'auto',
flexGrow: '0',
Expand All @@ -27,7 +25,6 @@ export const useSiteNavStyles = makeStyles({
},
absoluteContainer: {
backgroundColor: gov4GitTokens.colorNeutralBackground1,
// backgroundColor: gov4GitTokens.g4gColorPrimaryGreen1,
position: 'absolute',
top: '0',
minHeight: '100%',
Expand Down
16 changes: 10 additions & 6 deletions src/renderer/src/pages/Layout.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,31 @@ export const useLayoutStyles = makeStyles({
layout: {
display: 'flex',
flexDirection: 'column',
minHeight: '100%',
height: '100%',
width: '100%',
overflowY: 'hidden',
},
header: {
flexGrow: 0,
flexShrink: 0,
},
mainContainer: {
display: 'flex',
flexGrow: 1,
flexShrink: 1,
flexBasis: 'auto',
flexGrow: 0,
flexShrink: 0,
height: '100%',
overflowY: 'hidden',
},
main: {
...shorthands.padding(
gov4GitTokens.spacingVerticalL,
gov4GitTokens.spacingHorizontalM,
),
flexGrow: 1,
height: 'calc(100% - 60px)',
overflowY: 'auto',
flexGrow: 0,
flexShrink: 1,
flexBasis: 'auto',
flexBasis: '100%',
position: 'relative',
},
})

0 comments on commit 18ae18f

Please sign in to comment.