Update container shape of the File TimelineItem's icon. (#5288)

* Change corner radius of icon container

From round to 4px

* Update snapshots.
This commit is contained in:
Aaron Thornburgh
2026-03-20 15:08:57 +01:00
committed by GitHub
parent 0567b75cfb
commit c3ed417b8f
33 changed files with 66 additions and 65 deletions

View File

@@ -93,7 +93,8 @@ struct MediaFileRoomTimelineContent: View {
CompoundIcon(icon, size: .xSmall, relativeTo: .body)
.foregroundColor(.compound.iconPrimary)
.scaledPadding(8)
.background(.compound.iconOnSolidPrimary, in: Circle())
.background(.compound.iconOnSolidPrimary,
in: RoundedRectangle(cornerRadius: 4, style: .continuous))
}
.labelStyle(.custom(spacing: 8, alignment: .center))
.padding(.horizontal, 4) // Add to the styler's padding of 8, as we use the default insets for the caption.