Skip to content

Commit

Permalink
fix(app-headless-cms): use grid for gallery thumbnails [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed May 8, 2024
1 parent 3cc545e commit a961aae
Showing 1 changed file with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,10 @@ const InnerImageFieldWrapper = styled("div")({
});

const Gallery = styled.div`
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
gap: 10px;
> div {
flex: 1 1 21%;
max-width: 25%;
> img {
padding: 15px;
}
}
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
grid-template-rows: auto;
gap: 15px;
`;

const FieldRenderer = ({ getBind, Label, field }: CmsModelFieldRendererProps) => {
Expand Down

0 comments on commit a961aae

Please sign in to comment.