mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
Halve spacing in home shortcuts edit preview grid
This commit is contained in:
@@ -34,7 +34,7 @@ struct HomeShortcutStyleView: View {
|
|||||||
|
|
||||||
@State private var customEditMode: CustomEditMode = .list
|
@State private var customEditMode: CustomEditMode = .list
|
||||||
|
|
||||||
private let previewColumns = [GridItem(.adaptive(minimum: 150), spacing: 16)]
|
private let previewColumns = [GridItem(.adaptive(minimum: 150), spacing: 8)]
|
||||||
|
|
||||||
/// All static shortcut types, previewed regardless of the user's current
|
/// All static shortcut types, previewed regardless of the user's current
|
||||||
/// Home configuration so every style variation is visible.
|
/// Home configuration so every style variation is visible.
|
||||||
@@ -62,7 +62,7 @@ struct HomeShortcutStyleView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
LazyVGrid(columns: previewColumns, spacing: 16) {
|
LazyVGrid(columns: previewColumns, spacing: 8) {
|
||||||
ForEach(Array(previewItems.enumerated()), id: \.element.id) { index, item in
|
ForEach(Array(previewItems.enumerated()), id: \.element.id) { index, item in
|
||||||
HomeShortcutCardView(
|
HomeShortcutCardView(
|
||||||
icon: item.icon,
|
icon: item.icon,
|
||||||
|
|||||||
Reference in New Issue
Block a user