Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: alert text show up to 1000 #744

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading