Skip to content

Commit

Permalink
pkp/pkp-lib#10769 Improve table layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Feb 3, 2025
1 parent bae8ad5 commit 9f72abc
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/Modal/SideModalLayoutMenu2Columns.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="p-4">
<div class="min-w-max p-4">
<div class="flex w-full bg-secondary">
<div class="flex flex-col border-t border-light">
<slot name="menu"></slot>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/Table.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="overflow-x-auto">
<div class="">
<div
v-if="slots.label || slots.description || slots['top-controls']"
class="flex justify-between border-x border-t border-light bg-secondary p-4"
Expand Down
4 changes: 4 additions & 0 deletions src/pages/dashboard/DashboardPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ const store = useDashboardPageStore(props);
</script>

<style>
.pkp_page_dashboard {
@apply min-w-max;
}
.pkp_page_dashboard .app__main {
@apply bg-secondary p-0;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<TableCell>
<TableCell fit-content>
<PkpButton
class="-ms-3"
:aria-describedby="'submission-title-' + item.id"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<TableCell>
<TableCell class="min-w-[17rem]">
<div class="flex flex-col justify-center gap-y-2">
<component
:is="Components[config.component] || config.component"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<TableCell>{{ item.submissionId }}</TableCell>
<TableCell fit-content>{{ item.submissionId }}</TableCell>
</template>

<script setup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<TableCell
:id="'submission-title-' + item.id"
class="max-w-[25em] truncate"
full-width-truncated
:is-row-header="true"
>
<span class="text-lg-semibold" v-html="title"></span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<TableCell>
<TableCell fit-content>
<PkpButton
class="-ms-3"
:aria-describedby="'submission-title-' + item.id"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<TableCell>
<TableCell class="min-w-[17rem]">
<div class="flex flex-col justify-center gap-y-2">
<component
:is="Components[config.component] || config.component"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<TableCell>{{ days }}</TableCell>
<TableCell fit-content>{{ days }}</TableCell>
</template>
<script setup>
import {computed} from 'vue';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<TableCell>{{ item.id }}</TableCell>
<TableCell fit-content>{{ item.id }}</TableCell>
</template>

<script setup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<TableCell>
<TableCell fit-content>
<span class="text-base-normal">
<StageBubble :extended-stage="extendedStage">
{{ stageLabel }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<TableCell
:id="'submission-title-' + item.id"
class="max-w-[25em] truncate"
full-width-truncated
:is-row-header="true"
>
<span class="text-base-bold">
Expand Down

0 comments on commit 9f72abc

Please sign in to comment.