mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +00:00
Prevent dynamic gap from getting pruned by tailwind
This commit is contained in:
parent
254dcb2547
commit
fc39a60805
@ -40,7 +40,7 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
<Content gap={2}>
|
||||
<Content gap="gap-2">
|
||||
{#each $people || [] as person}
|
||||
<PersonInfo {person} />
|
||||
{:else}
|
||||
|
@ -1,10 +1,10 @@
|
||||
<script>
|
||||
import cx from "classnames"
|
||||
|
||||
export let gap = 6
|
||||
export let gap = "gap-6"
|
||||
export let size = "2xl"
|
||||
|
||||
const className = `flex flex-col m-auto text-gray-2 gap-${gap} overflow-hidden`
|
||||
const className = `flex flex-col m-auto text-gray-2 ${gap} overflow-hidden`
|
||||
|
||||
if (!["inherit", "lg", "2xl"].includes(size)) {
|
||||
throw new Error(`Invalid size: ${size}`)
|
||||
|
Loading…
Reference in New Issue
Block a user