From 1cf10b563af410548b71864da85d9717a07aab66 Mon Sep 17 00:00:00 2001 From: Milad Nazari Date: Wed, 3 Jun 2026 13:33:41 +0330 Subject: [PATCH] fix(frontend): fix buttons alignments in rtl direction --- frontend/src/components/tasks/partials/RelatedTasks.vue | 2 +- frontend/src/styles/theme/helpers.scss | 6 +++++- frontend/src/views/labels/ListLabels.vue | 2 +- frontend/src/views/teams/ListTeams.vue | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/tasks/partials/RelatedTasks.vue b/frontend/src/components/tasks/partials/RelatedTasks.vue index 8e81a2083..0bc8c296e 100644 --- a/frontend/src/components/tasks/partials/RelatedTasks.vue +++ b/frontend/src/components/tasks/partials/RelatedTasks.vue @@ -4,7 +4,7 @@ v-if="editEnabled && Object.keys(relatedTasks).length > 0" id="showRelatedTasksFormButton" v-tooltip="$t('task.relation.add')" - class="is-pulled-right add-task-relation-button d-print-none" + class="is-pulled-end add-task-relation-button d-print-none" :class="{'is-active': showNewRelationForm}" variant="secondary" icon="plus" diff --git a/frontend/src/styles/theme/helpers.scss b/frontend/src/styles/theme/helpers.scss index b2238a00b..5e8685da2 100644 --- a/frontend/src/styles/theme/helpers.scss +++ b/frontend/src/styles/theme/helpers.scss @@ -4,6 +4,10 @@ } } -.is-pulled-right { +.is-pulled-end { float: right !important; } + +[dir="rtl"] .is-pulled-end { + float: left !important; +} diff --git a/frontend/src/views/labels/ListLabels.vue b/frontend/src/views/labels/ListLabels.vue index 30ae58645..b86dedd1d 100644 --- a/frontend/src/views/labels/ListLabels.vue +++ b/frontend/src/views/labels/ListLabels.vue @@ -5,7 +5,7 @@ > {{ $t('label.create.header') }} diff --git a/frontend/src/views/teams/ListTeams.vue b/frontend/src/views/teams/ListTeams.vue index 5b5d8077d..00c31703a 100644 --- a/frontend/src/views/teams/ListTeams.vue +++ b/frontend/src/views/teams/ListTeams.vue @@ -5,7 +5,7 @@ > {{ $t('team.create.title') }}