From 8753c2899a3a6b52e1f1cea33bba3135bdcc8ed8 Mon Sep 17 00:00:00 2001 From: Nitwel Date: Tue, 30 Mar 2021 19:09:02 +0200 Subject: [PATCH] dont allow to sort m2a and translations (#4750) --- app/src/layouts/tabular/tabular.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/layouts/tabular/tabular.vue b/app/src/layouts/tabular/tabular.vue index 0a84505be4..eecd0b1302 100644 --- a/app/src/layouts/tabular/tabular.vue +++ b/app/src/layouts/tabular/tabular.vue @@ -463,7 +463,10 @@ export default defineComponent({ type: field.type, field: field.field, }, - sortable: ['json', 'o2m', 'm2o', 'file', 'files', 'alias', 'presentation'].includes(field.type) === false, + sortable: + ['json', 'o2m', 'm2o', 'm2a', 'file', 'files', 'alias', 'presentation', 'translations'].includes( + field.type + ) === false, })); }, set(val) { @@ -584,8 +587,8 @@ export default defineComponent({ position: sticky; left: 0; display: flex; - justify-content: space-between; align-items: center; + justify-content: space-between; width: 100%; padding: 32px var(--content-padding); @@ -595,8 +598,8 @@ export default defineComponent({ .per-page { display: flex; - justify-content: flex-end; align-items: center; + justify-content: flex-end; width: 240px; color: var(--foreground-subdued);