Skip to content

Commit

Permalink
fix: text alignment in preferences view (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhermawan authored Aug 4, 2024
1 parent d2eb310 commit 758f6e7
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Canvas/Views/AppView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct AppView: View {
var body: some View {
NavigationSplitView {
AppSidebarView(selection: $selectedSidebar)
.navigationSplitViewColumnWidth(min: 224, ideal: 224)
.navigationSplitViewColumnWidth(min: 256, ideal: 256)
} detail: {
switch selectedSidebar {
case .imageGeneration:
Expand Down
11 changes: 7 additions & 4 deletions CoreViews/Sources/CoreViews/Texts/FootnoteText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ public struct FootnoteText: View {
}

public var body: some View {
Text(titleKey)
.foregroundStyle(.secondary)
.frame(maxWidth: .infinity, alignment: .leading)
.font(.callout)
VStack {
Text(titleKey)
.multilineTextAlignment(.leading)
.foregroundStyle(.secondary)
.font(.callout)
}
.frame(maxWidth: .infinity, alignment: .leading)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public struct ImagePreferencesView: View {
StylePicker(styles, selection: selection)
}
}
.inspectorColumnWidth(min: 312, ideal: 312)
.inspectorColumnWidth(min: 320, ideal: 320)
.onChange(of: modelSelection) {
numberSelection = modelSelection.numbers[0]
sizeSelection = modelSelection.sizes[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct ModelPicker: View {

var body: some View {
Section {
Picker("Select model", selection: $selection) {
Picker("Selected model", selection: $selection) {
ForEach(DalleModel.allCases) { model in
Text(model.title).tag(model)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct NumberPicker: View {

var body: some View {
Section {
Picker("Select number", selection: $selection) {
Picker("Selected number", selection: $selection) {
ForEach(numbers, id: \.self) { number in
Text(String(number)).tag(number)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct QualityPicker: View {

var body: some View {
Section {
Picker("Select quality", selection: $selection) {
Picker("Selected quality", selection: $selection) {
ForEach(qualities) { quality in
Text(quality.title).tag(quality)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct SizePicker: View {

var body: some View {
Section {
Picker("Select size", selection: $selection) {
Picker("Selected size", selection: $selection) {
ForEach(sizes, id: \.self) { size in
Text(size.title).tag(size)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct StylePicker: View {

var body: some View {
Section {
Picker("Select style", selection: $selection) {
Picker("Selected style", selection: $selection) {
ForEach(styles) { style in
Text(style.title).tag(style)
}
Expand Down

0 comments on commit 758f6e7

Please sign in to comment.