Skip to content

A self-hosted media server and file management system

fix: table control overflow

aminnausin63200849d892
diff --git a/resources/js/components/cedar-ui/select/InputSelect.vue b/resources/js/components/cedar-ui/select/InputSelect.vue
index 65b00316..9c3aae33 100644
--- a/resources/js/components/cedar-ui/select/InputSelect.vue
+++ b/resources/js/components/cedar-ui/select/InputSelect.vue
@@ -113,7 +113,7 @@ watch(
);
</script>
<template>
- <section :class="[`group relative text-sm`, rootClass]" @focusout="handleFocusOut" ref="selectableItemsRoot">
+ <section :class="[`group relative w-full text-sm`, rootClass]" @focusout="handleFocusOut" ref="selectableItemsRoot">
<button
@click="select.toggleSelect(!select.selectOpen)"
:id="props.name"
@@ -131,13 +131,14 @@ watch(
{ 'hocus:ring-0': select.selectOpen },
{ 'text-foreground-3': placeholder && !select.selectedItem },
'hover:ring-primary-muted focus:ring-primary focus-within:ring-primary-muted',
+ 'break-all',
props.class,
)
"
ref="selectButton"
type="button"
>
- <span class="truncate"
+ <span class="line-clamp-1"
>{{
//@ts-ignore
select.selectedItem ? `${prefix}${select.selectedItem.title}` : placeholder
diff --git a/resources/js/components/cedar-ui/table/TableBase.vue b/resources/js/components/cedar-ui/table/TableBase.vue
index cbd1a67e..ab4068a4 100644
--- a/resources/js/components/cedar-ui/table/TableBase.vue
+++ b/resources/js/components/cedar-ui/table/TableBase.vue
@@ -62,7 +62,7 @@ onMounted(() => {
title="Search with..."
/>
- <div :class="['flex flex-wrap items-end gap-2 sm:flex-nowrap', model === undefined ? 'flex-1' : 'sm:w-48']">
+ <div :class="['flex flex-wrap items-end gap-2 sm:flex-nowrap', model === undefined ? 'flex-1' : 'sm:w-48 lg:w-52']">
<div :class="['flex w-full flex-1 flex-col gap-2']">
<InputSelect
:name="'sort'"