From b3eb4a6de54039b50e59c47d113ad33cdaebc0af Mon Sep 17 00:00:00 2001 From: PeymanHonarjoo Date: Mon, 12 Oct 2026 17:30:23 +0330 Subject: [PATCH] feat(settings): adjust document actions layout to prevent button wrapping --- src/app/pages/settings/settings.page.css | 19 ++++++++++++++ src/app/pages/settings/settings.page.html | 12 ++++----- src/app/pages/settings/settings.page.spec.ts | 26 ++++++++++++++++++++ 3 files changed, 51 insertions(+), 6 deletions(-) diff --git a/src/app/pages/settings/settings.page.css b/src/app/pages/settings/settings.page.css index 8f8c67e..5592fbf 100644 --- a/src/app/pages/settings/settings.page.css +++ b/src/app/pages/settings/settings.page.css @@ -500,6 +500,25 @@ border-bottom: none; } +/* + * Row actions: the buttons must not be squeezed by the fixed column. + * Flex items shrink by default, which used to wrap «تلاش‌مجدد» / «بازبینی سند» + * mid-word (the cell's `overflow-wrap: anywhere` leaked into the button), so + * each button keeps its intrinsic width and the cell wraps to a new line only + * when there is genuinely no room. + */ +.documents-actions { + align-items: flex-start; + flex-wrap: wrap; +} + +.documents-actions > .btn { + flex: 0 0 auto; + white-space: nowrap; + overflow-wrap: normal; + word-break: normal; +} + /* Status badges */ .status-queued { background: var(--color-warning)/15; diff --git a/src/app/pages/settings/settings.page.html b/src/app/pages/settings/settings.page.html index 234c05b..dd354d3 100644 --- a/src/app/pages/settings/settings.page.html +++ b/src/app/pages/settings/settings.page.html @@ -499,12 +499,12 @@
- - - + + + - - + + @@ -590,7 +590,7 @@ }
-
+
@if (isReviewNeeded(doc) && doc.status === 'failed') {