Skip to content

Commit 81164d9

Browse files
authored
Merge pull request #42 from SubvertDev/feature/change-lock-position
Changed paddings
2 parents bbc7db3 + 2cf95f0 commit 81164d9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Modules/Sources/FavoritesFeature/FavoritesScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public struct FavoritesScreen: View {
311311
.scaledToFit()
312312
.frame(width: 16, height: 16)
313313
.foregroundStyle(Color(.Labels.secondary))
314-
.padding(.trailing, unread ? 0 : 12)
314+
.padding(.trailing, unread ? -2 : 12)
315315
}
316316

317317
if unread {

Modules/Sources/ForumFeature/ForumScreen.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,29 +272,29 @@ public struct ForumScreen: View {
272272
}
273273

274274
Spacer(minLength: 0)
275-
276-
if unread {
277-
Image(systemSymbol: .circleFill)
278-
.resizable()
279-
.scaledToFit()
280-
.frame(width: 10, height: 10)
281-
.foregroundStyle(tintColor)
282-
}
283-
284275
if closed {
285276
Image(systemSymbol: .lock)
286277
.resizable()
287278
.scaledToFit()
288279
.frame(width: 16, height: 16)
289280
.foregroundStyle(Color(.Labels.secondary))
281+
.padding(.trailing, unread ? 4 : 12)
282+
}
283+
284+
if unread {
285+
Image(systemSymbol: .circleFill)
286+
.resizable()
287+
.scaledToFit()
288+
.frame(width: 10, height: 10)
289+
.foregroundStyle(tintColor)
290290
.padding(.trailing, 12)
291291
}
292292
}
293293
.padding(.vertical, 8)
294294
.contentShape(Rectangle())
295295
}
296296
}
297-
.listRowInsets(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 16))
297+
.listRowInsets(EdgeInsets(top: 0, leading: 16, bottom: 0, trailing: 0))
298298
.buttonStyle(.plain)
299299
.frame(minHeight: 60)
300300
}

0 commit comments

Comments
 (0)