From 9ca0a7d60a7f3bf24e2e915798eb091b7366fb90 Mon Sep 17 00:00:00 2001 From: theresa Date: Sat, 1 May 2021 10:53:54 +0200 Subject: [PATCH] Frontend: Add rtl alignment to sharing view --- frontend/src/share/photo/list.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/share/photo/list.vue b/frontend/src/share/photo/list.vue index 5a50319d7..4d0ca8b1b 100644 --- a/frontend/src/share/photo/list.vue +++ b/frontend/src/share/photo/list.vue @@ -114,17 +114,19 @@ export default { let showName = this.filter.order === 'name'; + const align = !this.$rtl ? 'left' : 'right'; return { config: this.$config.values, notFoundMessage: m, 'selected': [], 'listColumns': [ {text: '', value: '', align: 'center', class: 'p-col-select', sortable: false}, - {text: this.$gettext('Title'), value: 'Title', sortable: false}, - {text: this.$gettext('Taken'), class: 'hidden-xs-only', value: 'TakenAt', sortable: false}, - {text: this.$gettext('Camera'), class: 'hidden-sm-and-down', value: 'CameraModel', sortable: false}, + {text: this.$gettext('Title'), align, value: 'Title', sortable: false}, + {text: this.$gettext('Taken'), align, class: 'hidden-xs-only', value: 'TakenAt', sortable: false}, + {text: this.$gettext('Camera'), align, class: 'hidden-sm-and-down', value: 'CameraModel', sortable: false}, { text: showName ? this.$gettext('Name') : this.$gettext('Location'), + align, class: 'hidden-xs-only', value: showName ? 'FileName' : 'PlaceLabel', sortable: false