Skip to content

Commit

Permalink
fix: Hide welcome banner on small screens
Browse files Browse the repository at this point in the history
On small screens, the welcome banner is unnecessary clutter.
Hide it on anything that's less tall than a 1080p monitor.

Closes #1786
  • Loading branch information
zusorio committed Sep 12, 2024
1 parent f43efb9 commit a43b2c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/sessions/sessions.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ SPDX-License-Identifier: Apache-2.0
-->

<div class="mb-12"><app-welcome /></div>
<div class="mb-12 hidden tall:block"><app-welcome /></div>

<app-user-sessions-wrapper>
<div class="flex flex-wrap justify-around gap-4">
Expand Down
3 changes: 3 additions & 0 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ module.exports = {
// 2*10px is the margin of the mat-card
"max-card": "calc(100vw - 2*3.9px - 2*10px)",
},
screens: {
tall: { raw: "(min-height: 945px)" },
},
},
},
plugins: [],
Expand Down

0 comments on commit a43b2c1

Please sign in to comment.