Skip to content

Commit

Permalink
fix: add shrink-0 to prevent toggle UI from shrinking on small screen…
Browse files Browse the repository at this point in the history
… sizes (#885)
  • Loading branch information
darbymanning authored Jul 3, 2023
1 parent da5a05a commit 81c65bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/forms/Toggle.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
let background: boolean = getContext('background');
const common =
"mr-3 bg-gray-200 rounded-full peer-focus:ring-4 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:bg-white after:border-gray-300 after:border after:rounded-full after:transition-all";
"mr-3 shrink-0 bg-gray-200 rounded-full peer-focus:ring-4 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:bg-white after:border-gray-300 after:border after:rounded-full after:transition-all";
const colors = {
primary: 'peer-focus:ring-primary-300 dark:peer-focus:ring-primary-800 peer-checked:bg-primary-600',
Expand Down

2 comments on commit 81c65bd

@vercel
Copy link

@vercel vercel bot commented on 81c65bd Jul 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 81c65bd Jul 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.