-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the filters to a modal on mobile and add a clear all filters button
- Loading branch information
Showing
6 changed files
with
97 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps<{ | ||
color?: string; | ||
}>(); | ||
const props = withDefaults(defineProps<{ | ||
color?: string, | ||
additionalClasses?: string | ||
}>(), { | ||
additionalClasses: 'p-4 mx-2' | ||
}) | ||
</script> | ||
<template> | ||
<div class="w-full my-2"> | ||
<div :class="color?`bg-${color}-100 dark:bg-${color}-900`:'bg-white dark:bg-gray-80'" | ||
class="overflow-hidden shadow-sm rounded-lg h-full flex flex-col p-4 mx-2"> | ||
<div :class="[ | ||
color?`bg-${color}-100`:'bg-white', | ||
color?`text-${color}-800`:'text-gray-800', | ||
color?`dark:bg-${color}-900`:'dark:bg-gray-800', | ||
props.additionalClasses?props.additionalClasses:'']" | ||
class="overflow-hidden shadow-sm rounded-lg h-full flex flex-col"> | ||
<slot></slot> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<Teleport :to="to" v-if="isMounted" :disabled="disabled"><slot></slot></Teleport> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: "MountedTeleport", | ||
props: ['to', 'disabled'], | ||
data() { | ||
return {isMounted: false} | ||
}, | ||
mounted() { | ||
this.isMounted = true; | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters