From 6e72fbbefcd58b8428290a5e92c735d62c60f758 Mon Sep 17 00:00:00 2001 From: futur Date: Mon, 7 Oct 2024 12:04:19 -0400 Subject: [PATCH 1/2] Reduce post reason icon size & offset (#5522) * Make x margin within pin icon the same * Reduce post reason icon size and offset --- src/components/icons/Pin.tsx | 2 +- src/view/com/posts/FeedItem.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/icons/Pin.tsx b/src/components/icons/Pin.tsx index 03dbbac90e..e595366954 100644 --- a/src/components/icons/Pin.tsx +++ b/src/components/icons/Pin.tsx @@ -1,5 +1,5 @@ import {createSinglePathSVG} from './TEMPLATE' export const Pin_Stroke2_Corner0_Rounded = createSinglePathSVG({ - path: 'M6.5 3a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v3.997a6.25 6.25 0 0 0 1.83 4.42l.377.376A1 1 0 0 1 20 12.5V15a1 1 0 0 1-1 1h-6v5a1 1 0 1 1-2 0v-5H5a1 1 0 0 1-1-1v-2.5a1 1 0 0 1 .293-.707l.376-.377A6.25 6.25 0 0 0 6.5 6.996V3.001Zm2 1v2.997a8.25 8.25 0 0 1-2.416 5.834L6 12.914V14h12v-1.086l-.084-.083A8.25 8.25 0 0 1 15.5 6.997V4h-7Z', + path: 'M6.5 3a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v4a6.2 6.2 0 0 0 1.8 4.4l.4.4c.2.2.3.4.3.7V15a1 1 0 0 1-1 1h-6v5a1 1 0 0 1-2 0v-5H5a1 1 0 0 1-1-1v-2.5c0-.3.1-.5.3-.7l.4-.4A6.3 6.3 0 0 0 6.5 7V3Zm2 1v3a8.2 8.2 0 0 1-2.4 5.8L6 13v1h12v-1.2A8.2 8.2 0 0 1 15.4 7V4h-7Z', }) diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 28b8f4ceb2..fc640b2ad9 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -299,8 +299,8 @@ let FeedItemInner = ({ onBeforePress={onOpenReposter}> Date: Mon, 7 Oct 2024 11:10:25 -0500 Subject: [PATCH 2/2] Use existing pin --- src/components/icons/Pin.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/icons/Pin.tsx b/src/components/icons/Pin.tsx index e595366954..03dbbac90e 100644 --- a/src/components/icons/Pin.tsx +++ b/src/components/icons/Pin.tsx @@ -1,5 +1,5 @@ import {createSinglePathSVG} from './TEMPLATE' export const Pin_Stroke2_Corner0_Rounded = createSinglePathSVG({ - path: 'M6.5 3a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v4a6.2 6.2 0 0 0 1.8 4.4l.4.4c.2.2.3.4.3.7V15a1 1 0 0 1-1 1h-6v5a1 1 0 0 1-2 0v-5H5a1 1 0 0 1-1-1v-2.5c0-.3.1-.5.3-.7l.4-.4A6.3 6.3 0 0 0 6.5 7V3Zm2 1v3a8.2 8.2 0 0 1-2.4 5.8L6 13v1h12v-1.2A8.2 8.2 0 0 1 15.4 7V4h-7Z', + path: 'M6.5 3a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v3.997a6.25 6.25 0 0 0 1.83 4.42l.377.376A1 1 0 0 1 20 12.5V15a1 1 0 0 1-1 1h-6v5a1 1 0 1 1-2 0v-5H5a1 1 0 0 1-1-1v-2.5a1 1 0 0 1 .293-.707l.376-.377A6.25 6.25 0 0 0 6.5 6.996V3.001Zm2 1v2.997a8.25 8.25 0 0 1-2.416 5.834L6 12.914V14h12v-1.086l-.084-.083A8.25 8.25 0 0 1 15.5 6.997V4h-7Z', })