Skip to content

Commit

Permalink
Merge pull request #1129 from jetstreamapp/bug/app-homepage-responsive
Browse files Browse the repository at this point in the history
Fixe app homepage responsiveness
  • Loading branch information
paustint authored Jan 1, 2025
2 parents 7f1e5ed + e6847e1 commit d292fec
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion libs/shared/ui-core/src/app/AppHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,46 @@ export const AppHome = () => {
<div
className="slds-m-top_small"
css={css`
min-width: 300px;
max-width: calc(33em * 3);
overflow-x: auto;
margin-left: auto;
margin-right: auto;
@media (max-width: 768px) {
max-width: 100%;
}
`}
>
<div
css={css`
display: grid;
gap: 1em;
grid-template-columns: repeat(auto-fit, minmax(5em, 30em));
grid-template-columns: repeat(3, minmax(5em, 30em));
justify-content: center;
@media (max-width: 1024px) {
grid-template-columns: repeat(2, minmax(5em, 30em));
}
@media (max-width: 768px) {
grid-template-columns: repeat(1, minmax(5em, 30em));
}
`}
>
<div
className="slds-box slds-box_x-small"
css={css`
background-color: white;
grid-column: span 3;
@media (max-width: 1024px) {
grid-column: span 2;
}
@media (max-width: 768px) {
grid-column: span 1;
}
`}
>
<article className="slds-tile slds-media">
Expand Down

0 comments on commit d292fec

Please sign in to comment.