Skip to content

Commit

Permalink
style: fix widget height bug (#1552)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyscode authored Nov 28, 2024
1 parent 581ba91 commit 80777ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Widgets/Widget.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const WidgetWrapper = styled(Box, {
transitionDuration: '.3s',
transitionTimingFunction: 'ease-in-out',
marginTop: 0,
maxHeight: '100%',
maxHeight: welcomeScreenClosed ? '100%' : '50vh',
...(!welcomeScreenClosed && {
cursor: 'pointer',
// add margin-top to widget-wrapper when welcome-screen is closed
Expand Down Expand Up @@ -70,7 +70,7 @@ export const WidgetWrapper = styled(Box, {
marginTop: !welcomeScreenClosed ? DEFAULT_WIDGET_TOP_OFFSET_VAR : 0,
[`@media screen and (min-height: 700px)`]: {
// set default widget height
height: DEFAULT_WIDGET_HEIGHT,
height: welcomeScreenClosed ? DEFAULT_WIDGET_HEIGHT : '50vh',
marginTop: !welcomeScreenClosed
? // (mid viewheight - ≈ 2/3 of widget height - navbar height )
`calc( ${DEFAULT_WIDGET_TOP_OFFSET_VAR} - 40px )`
Expand Down

0 comments on commit 80777ba

Please sign in to comment.