Skip to content

A self-hosted media server and file management system

fix: context menu text overpowers icon

aminnausin2c412c2d039e
diff --git a/resources/js/components/cedar-ui/context-menu/ContextMenuItem.vue b/resources/js/components/cedar-ui/context-menu/ContextMenuItem.vue
index 7aae2c9f..c59c0cb4 100644
--- a/resources/js/components/cedar-ui/context-menu/ContextMenuItem.vue
+++ b/resources/js/components/cedar-ui/context-menu/ContextMenuItem.vue
@@ -27,7 +27,7 @@ const wrapperProps = computed(() => {
v-bind="wrapperProps"
>
<slot name="icon">
- <component v-if="icon" :is="icon" class="size-4" />
+ <component v-if="icon" :is="icon" class="size-4 shrink-0" />
<span
v-else
width="24"
@@ -42,7 +42,7 @@ const wrapperProps = computed(() => {
>
</span>
</slot>
- <span class="text-nowrap">{{ text }}</span>
- <span class="ml-auto text-xs tracking-widest opacity-60">{{ shortcut ?? '' }}</span>
+ <span class="mr-auto truncate text-nowrap">{{ text }}</span>
+ <span class="text-xs tracking-widest opacity-60" v-if="shortcut">{{ shortcut ?? '' }}</span>
</ButtonBase>
</template>