From 2cf95f014bf2b11d804d0f90c673e0b28d24646b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D1=82=D0=B0=D0=BC=20=D0=9E=D0=B9=D1=82?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Thu, 27 Mar 2025 22:01:55 +0300 Subject: [PATCH] Changed paddings --- .../FavoritesFeature/FavoritesScreen.swift | 2 +- .../Sources/ForumFeature/ForumScreen.swift | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Modules/Sources/FavoritesFeature/FavoritesScreen.swift b/Modules/Sources/FavoritesFeature/FavoritesScreen.swift index 3af2bfde..e6d9f901 100644 --- a/Modules/Sources/FavoritesFeature/FavoritesScreen.swift +++ b/Modules/Sources/FavoritesFeature/FavoritesScreen.swift @@ -311,7 +311,7 @@ public struct FavoritesScreen: View { .scaledToFit() .frame(width: 16, height: 16) .foregroundStyle(Color(.Labels.secondary)) - .padding(.trailing, unread ? 0 : 12) + .padding(.trailing, unread ? -2 : 12) } if unread { diff --git a/Modules/Sources/ForumFeature/ForumScreen.swift b/Modules/Sources/ForumFeature/ForumScreen.swift index 79830f5f..8db0d267 100644 --- a/Modules/Sources/ForumFeature/ForumScreen.swift +++ b/Modules/Sources/ForumFeature/ForumScreen.swift @@ -272,21 +272,21 @@ public struct ForumScreen: View { } Spacer(minLength: 0) - - if unread { - Image(systemSymbol: .circleFill) - .resizable() - .scaledToFit() - .frame(width: 10, height: 10) - .foregroundStyle(tintColor) - } - if closed { Image(systemSymbol: .lock) .resizable() .scaledToFit() .frame(width: 16, height: 16) .foregroundStyle(Color(.Labels.secondary)) + .padding(.trailing, unread ? 4 : 12) + } + + if unread { + Image(systemSymbol: .circleFill) + .resizable() + .scaledToFit() + .frame(width: 10, height: 10) + .foregroundStyle(tintColor) .padding(.trailing, 12) } } @@ -294,7 +294,7 @@ public struct ForumScreen: View { .contentShape(Rectangle()) } } - .listRowInsets(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16)) + .listRowInsets(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 0)) .buttonStyle(.plain) .frame(minHeight: 60) }