Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin header #51

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
},
})