Skip to content

Commit

Permalink
fix project name column overflow on some screen sizes with long proje…
Browse files Browse the repository at this point in the history
…ct names
  • Loading branch information
Onatcer committed Sep 30, 2024
1 parent c9c221d commit 469f128
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion resources/js/Components/Common/Project/ProjectTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ const { clients } = storeToRefs(useClientsStore());
class="grid min-w-full"
style="
grid-template-columns:
1fr minmax(150px, auto) minmax(140px, auto)
minmax(300px, 1fr) minmax(150px, auto) minmax(
140px,
auto
)
minmax(130px, auto) minmax(130px, auto) minmax(
120px,
auto
Expand Down
4 changes: 2 additions & 2 deletions resources/js/Components/Common/Project/ProjectTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ const showEditProjectModal = ref(false);
:original-project="project"></ProjectEditModal>
<TableRow :href="route('projects.show', { project: project.id })">
<div
class="whitespace-nowrap flex items-center space-x-5 3xl:pl-12 py-4 pr-3 text-sm font-medium text-white pl-4 sm:pl-6 lg:pl-8 3xl:pl-12">
class="whitespace-nowrap min-w-0 flex items-center space-x-5 3xl:pl-12 py-4 pr-3 text-sm font-medium text-white pl-4 sm:pl-6 lg:pl-8 3xl:pl-12">
<div
:style="{
backgroundColor: project.color,
boxShadow: `var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) ${project.color}30`,
}"
class="w-3 h-3 rounded-full"></div>
<span>
<span class="overflow-ellipsis overflow-hidden">
{{ project.name }}
</span>
<span class="text-muted"> {{ projectTasksCount }} Tasks </span>
Expand Down

0 comments on commit 469f128

Please sign in to comment.