mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
Fix truncated section footers in Remote Control sheet on macOS
This commit is contained in:
@@ -114,11 +114,17 @@ struct RemoteControlContentView: View {
|
|||||||
statusRow
|
statusRow
|
||||||
}
|
}
|
||||||
} footer: {
|
} footer: {
|
||||||
if isIncognito {
|
Group {
|
||||||
Text(String(localized: "remoteControl.enableFooter.incognito"))
|
if isIncognito {
|
||||||
} else {
|
Text(String(localized: "remoteControl.enableFooter.incognito"))
|
||||||
Text(String(localized: "remoteControl.enableFooter"))
|
} else {
|
||||||
|
Text(String(localized: "remoteControl.enableFooter"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
.lineLimit(nil)
|
||||||
|
.multilineTextAlignment(.leading)
|
||||||
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,6 +196,10 @@ struct RemoteControlContentView: View {
|
|||||||
} footer: {
|
} footer: {
|
||||||
if remoteControl?.isEnabled == true, remoteControl?.discoveredDevices.isEmpty == true {
|
if remoteControl?.isEnabled == true, remoteControl?.discoveredDevices.isEmpty == true {
|
||||||
Text(String(localized: "remoteControl.noDevicesFooter"))
|
Text(String(localized: "remoteControl.noDevicesFooter"))
|
||||||
|
.lineLimit(nil)
|
||||||
|
.multilineTextAlignment(.leading)
|
||||||
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user