Skip to content

Commit 9f72abc

Browse files
pkp/pkp-lib#10769 Improve table layout
1 parent bae8ad5 commit 9f72abc

13 files changed

+16
-12
lines changed

src/components/Modal/SideModalLayoutMenu2Columns.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="p-4">
2+
<div class="min-w-max p-4">
33
<div class="flex w-full bg-secondary">
44
<div class="flex flex-col border-t border-light">
55
<slot name="menu"></slot>

src/components/Table/Table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="overflow-x-auto">
2+
<div class="">
33
<div
44
v-if="slots.label || slots.description || slots['top-controls']"
55
class="flex justify-between border-x border-t border-light bg-secondary p-4"

src/pages/dashboard/DashboardPage.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ const store = useDashboardPageStore(props);
115115
</script>
116116

117117
<style>
118+
.pkp_page_dashboard {
119+
@apply min-w-max;
120+
}
121+
118122
.pkp_page_dashboard .app__main {
119123
@apply bg-secondary p-0;
120124
}

src/pages/dashboard/components/DashboardTable/CellReviewAssignmentActions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<TableCell>
2+
<TableCell fit-content>
33
<PkpButton
44
class="-ms-3"
55
:aria-describedby="'submission-title-' + item.id"

src/pages/dashboard/components/DashboardTable/CellReviewAssignmentActivity.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<TableCell>
2+
<TableCell class="min-w-[17rem]">
33
<div class="flex flex-col justify-center gap-y-2">
44
<component
55
:is="Components[config.component] || config.component"

src/pages/dashboard/components/DashboardTable/CellReviewAssignmentId.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<TableCell>{{ item.submissionId }}</TableCell>
2+
<TableCell fit-content>{{ item.submissionId }}</TableCell>
33
</template>
44

55
<script setup>

src/pages/dashboard/components/DashboardTable/CellReviewAssignmentTitle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<TableCell
33
:id="'submission-title-' + item.id"
4-
class="max-w-[25em] truncate"
4+
full-width-truncated
55
:is-row-header="true"
66
>
77
<span class="text-lg-semibold" v-html="title"></span>

src/pages/dashboard/components/DashboardTable/CellSubmissionActions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<TableCell>
2+
<TableCell fit-content>
33
<PkpButton
44
class="-ms-3"
55
:aria-describedby="'submission-title-' + item.id"

src/pages/dashboard/components/DashboardTable/CellSubmissionActivity/CellSubmissionActivity.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<TableCell>
2+
<TableCell class="min-w-[17rem]">
33
<div class="flex flex-col justify-center gap-y-2">
44
<component
55
:is="Components[config.component] || config.component"

src/pages/dashboard/components/DashboardTable/CellSubmissionDays.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<TableCell>{{ days }}</TableCell>
2+
<TableCell fit-content>{{ days }}</TableCell>
33
</template>
44
<script setup>
55
import {computed} from 'vue';

src/pages/dashboard/components/DashboardTable/CellSubmissionId.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<TableCell>{{ item.id }}</TableCell>
2+
<TableCell fit-content>{{ item.id }}</TableCell>
33
</template>
44

55
<script setup>

src/pages/dashboard/components/DashboardTable/CellSubmissionStage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<TableCell>
2+
<TableCell fit-content>
33
<span class="text-base-normal">
44
<StageBubble :extended-stage="extendedStage">
55
{{ stageLabel }}

src/pages/dashboard/components/DashboardTable/CellSubmissionTitle.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<TableCell
33
:id="'submission-title-' + item.id"
4-
class="max-w-[25em] truncate"
4+
full-width-truncated
55
:is-row-header="true"
66
>
77
<span class="text-base-bold">

0 commit comments

Comments
 (0)