From 26de3dade9aeb4292100b4c98822c0bde5d89264 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Sat, 16 May 2026 02:58:51 +0200 Subject: [PATCH] fix(native/blocker): thinner filter overview banner + count badge in header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Match the existing DomainSection visual pattern. One row at the top: title "Eigene Filter", inline Web/Mail legend dots, the X/Y count pill and a small + button — all on the same line. The bar drops below at 5px height (same as DomainSection). The 48×48 floating add button is gone in favour of a 28×28 inline button next to the count pill so the overview reads as a single horizontal strip rather than a tall card. --- apps/rebreak-native/app/(app)/blocker.tsx | 115 +++++++++++----------- 1 file changed, 59 insertions(+), 56 deletions(-) diff --git a/apps/rebreak-native/app/(app)/blocker.tsx b/apps/rebreak-native/app/(app)/blocker.tsx index e2eb8fe..bf96943 100644 --- a/apps/rebreak-native/app/(app)/blocker.tsx +++ b/apps/rebreak-native/app/(app)/blocker.tsx @@ -480,79 +480,82 @@ function CustomFilterOverview({ borderRadius: 16, borderWidth: 1, borderColor: colors.border, - padding: 14, - flexDirection: 'row', - alignItems: 'center', - gap: 12, + paddingHorizontal: 14, + paddingVertical: 10, + gap: 8, }} > - {/* Left: title + counter + bar */} - + {/* Top row: title + legend on left, count badge + add button on right */} + {t('blocker.custom_filter_overview_title')} - - {t('blocker.custom_filter_overview_count', { count: total, max })} - - - {/* Split progress bar */} + + + + {webCount} Web + + + + + + {mailCount} Mail + + + - - - - - {/* Legend dots */} - - - - - {webCount} Web - - - - - - {mailCount} Mail - - + + {t('blocker.custom_filter_overview_count', { count: total, max })} + + + + - {/* Right: add button */} - - - + + + ); }