chore: sort components into subfolders
This commit is contained in:
parent
2299d3a17a
commit
86ddae62b2
12 changed files with 13 additions and 12 deletions
46
components/Guild/GuildDropdown.vue
Normal file
46
components/Guild/GuildDropdown.vue
Normal file
|
@ -0,0 +1,46 @@
|
|||
<template>
|
||||
<div class="dropdown-body">
|
||||
<div v-for="option of props.options" class="dropdown-option">
|
||||
<button class="dropdown-button" :data-value="option.value" @click.prevent="option.callback" tabindex="0">{{ option.name }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { DropdownOption } from '~/types/interfaces';
|
||||
|
||||
const props = defineProps<{ options: DropdownOption[] }>();
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.dropdown-body {
|
||||
position: absolute;
|
||||
z-index: 100;
|
||||
left: 4dvw;
|
||||
bottom: 4dvh;
|
||||
background-color: var(--chat-background-color);
|
||||
width: 8rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.dropdown-option {
|
||||
border: .09rem solid rgb(70, 70, 70);
|
||||
}
|
||||
|
||||
.dropdown-button {
|
||||
padding-top: .5dvh;
|
||||
padding-bottom: .5dvh;
|
||||
color: var(--text-color);
|
||||
background-color: transparent;
|
||||
width: 100%;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.dropdown-button:hover {
|
||||
background-color: var(--padding-color);
|
||||
}
|
||||
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue