Skip to content

Commit

Permalink
Container query for likes
Browse files Browse the repository at this point in the history
  • Loading branch information
freekDraad committed Jan 24, 2025
1 parent 38a0992 commit 19536b3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions packages/likes/src/likes.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@
.like-widget-container.medium .like-option-container {
grid-template-columns: 1fr 1fr;
}

.like-widget-container.medium .like-option-container .utrecht-button:first-of-type:last-of-type{
grid-column: span 2;
}

.like-widget-container.medium{
container-type: inline-size;
}

@container (max-width: 400px) {
.like-widget-container.medium .like-option-container{
grid-template-columns: 1fr;
}
}



.like-option {
max-width: unset;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/likes/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ const config: LikeWidgetProps = {

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<Likes {...config} title="dsfsf" variant="large" />
<Likes {...config} title="Dit is een titel" variant="large" />
</React.StrictMode>
);

0 comments on commit 19536b3

Please sign in to comment.