Skip to content

Commit

Permalink
fix: alert text show up to 1000 (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng authored Dec 10, 2024
1 parent 024016e commit 852c67e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ struct ServiceConfigurationSecretSectionView<Content: View>: View {
viewModel.reset()
}
} message: {
Text(viewModel.errorMessage)
Text(viewModel.errorMessage.prefix(1000))
}
.onDisappear {
viewModel.invalidate()
Expand Down
4 changes: 2 additions & 2 deletions Easydict/Swift/View/SettingView/Tabs/TabView/AboutTab.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ struct SettingsAboutTab: View {
struct AboutTab: View {
// MARK: Internal

@Environment(\.openWindow) private var openWindow

var body: some View {
VortexViewReader { proxy in
GeometryReader { geometry in
Expand Down Expand Up @@ -119,6 +117,8 @@ struct AboutTab: View {

// MARK: Private

@Environment(\.openWindow) private var openWindow

private var appName: String {
Bundle.main.infoDictionary?["CFBundleName"] as? String ?? ""
}
Expand Down

0 comments on commit 852c67e

Please sign in to comment.