From 8fd26650468867d23725ebbc42a534b60669a958 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 27 Jun 2025 11:26:59 +0300 Subject: [PATCH] adjust styles, alf stuff --- src/view/com/feeds/FeedSourceCard.tsx | 36 ++++++------------------ src/view/com/util/LoadingPlaceholder.tsx | 5 ++-- src/view/screens/SavedFeeds.tsx | 4 +-- 3 files changed, 12 insertions(+), 33 deletions(-) diff --git a/src/view/com/feeds/FeedSourceCard.tsx b/src/view/com/feeds/FeedSourceCard.tsx index 2f58afaabf..55e02da3ef 100644 --- a/src/view/com/feeds/FeedSourceCard.tsx +++ b/src/view/com/feeds/FeedSourceCard.tsx @@ -220,10 +220,12 @@ export function FeedSourceCardLoaded({ testID={`feed-${feed.displayName}`} accessibilityRole="button" style={[ - styles.container, - pal.border, + a.flex_1, + a.p_lg, + a.gap_md, + !hideTopBorder && !a.border_t, + t.atoms.border_contrast_low, style, - {borderTopWidth: hideTopBorder ? 0 : StyleSheet.hairlineWidth}, ]} onPress={e => { const shouldOpenInNewTab = shouldClickOpenNewTab(e) @@ -252,11 +254,11 @@ export function FeedSourceCardLoaded({ } }} key={feed.uri}> - + - + {feed.displayName} @@ -304,7 +306,7 @@ export function FeedSourceCardLoaded({ {showDescription && feed.description ? ( @@ -339,28 +341,6 @@ export function FeedSourceCardLoaded({ } const styles = StyleSheet.create({ - container: { - paddingHorizontal: 18, - paddingVertical: 20, - flexDirection: 'column', - flex: 1, - gap: 14, - }, - border: { - borderTopWidth: StyleSheet.hairlineWidth, - }, - headerContainer: { - flexDirection: 'row', - }, - headerTextContainer: { - flexDirection: 'column', - columnGap: 4, - flex: 1, - }, - description: { - flex: 1, - flexWrap: 'wrap', - }, btn: { paddingVertical: 6, }, diff --git a/src/view/com/util/LoadingPlaceholder.tsx b/src/view/com/util/LoadingPlaceholder.tsx index 17479f8f8e..03dc35fc5a 100644 --- a/src/view/com/util/LoadingPlaceholder.tsx +++ b/src/view/com/util/LoadingPlaceholder.tsx @@ -233,8 +233,8 @@ export function FeedLoadingPlaceholder({