update shelltabview - remove geometryreader and make the smallest tab size larger

update keyimporterview to make the button not look odd
fix the textbox having illegible text
fix hostsymbol picker looking shit in light mode
This commit is contained in:
neon443 committed 2025-08-16 11:25:18 +01:00
1 parent 700c169e55
commit 587c85842f
3 files changed
+9 -7

No files matched your search

@@ -57,6 +57,7 @@ struct HostSymbolPicker: View {
} }
.padding(10) .padding(10)
} }
.preferredColorScheme(.dark)
.scrollDisabled(true) .scrollDisabled(true)
} }
} }
+7 -4
View File
@@ -45,8 +45,10 @@ struct KeyImporterView: View {
.listRowSeparator(.hidden) .listRowSeparator(.hidden)
TextEditor(text: $privkeyStr) TextEditor(text: $privkeyStr)
.background(.black) .background(.gray.opacity(0.5))
.clipShape(RoundedRectangle(cornerRadius: 10)) .clipShape(RoundedRectangle(cornerRadius: 8))
.padding(.bottom, 5)
.padding(.horizontal, -8)
} }
if !keypair.openSshPubkey.isEmpty { if !keypair.openSshPubkey.isEmpty {
@@ -55,7 +57,7 @@ struct KeyImporterView: View {
} }
} }
.overlay(alignment: .bottom) {
Button() { Button() {
keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName) keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName)
dismiss() dismiss()
@@ -68,7 +70,8 @@ struct KeyImporterView: View {
UINotificationFeedbackGenerator().notificationOccurred(.success) UINotificationFeedbackGenerator().notificationOccurred(.success)
} }
.buttonStyle(.borderedProminent) .buttonStyle(.borderedProminent)
.padding() .padding(.bottom, 15)
}
} }
} }
+1 -3
View File
@@ -46,9 +46,8 @@ struct ShellTabView: View {
ZStack { ZStack {
background background
.ignoresSafeArea(.all) .ignoresSafeArea(.all)
GeometryReader { geo in
VStack(spacing: 0) { VStack(spacing: 0) {
let oneTabWidth = max(60, (geo.size.width)/CGFloat(container.sessionIDs.count)) let oneTabWidth = max(100, (UIScreen.main.bounds.width)/CGFloat(container.sessionIDs.count))
HStack(alignment: .center, spacing: 10) { HStack(alignment: .center, spacing: 10) {
Button() { Button() {
@@ -197,7 +196,6 @@ struct ShellTabView: View {
} }
} }
} }
}
} }
#Preview { #Preview {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.