mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Implement issue state change button
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<script lang="ts" generics="T">
|
||||
export let items: T[];
|
||||
export let styleDropdownMinWidth: string | undefined = undefined;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.dropdown {
|
||||
align-items: center;
|
||||
border-radius: var(--border-radius-small);
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.dropdown-item {
|
||||
padding: 2px;
|
||||
font-size: var(--font-size-small);
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="dropdown" style:min-width={styleDropdownMinWidth}>
|
||||
{#each items as item}
|
||||
<div class="dropdown-item">
|
||||
<slot name="item" {item} />
|
||||
</div>
|
||||
{:else}
|
||||
<div class="dropdown-item">
|
||||
<slot name="empty" />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
Reference in New Issue
Block a user