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
2025-08-16 11:25:18 +01:00
parent 700c169e55
commit 587c85842f
3 changed files with 140 additions and 138 deletions

View File

@@ -57,6 +57,7 @@ struct HostSymbolPicker: View {
}
.padding(10)
}
.preferredColorScheme(.dark)
.scrollDisabled(true)
}
}

View File

@@ -45,8 +45,10 @@ struct KeyImporterView: View {
.listRowSeparator(.hidden)
TextEditor(text: $privkeyStr)
.background(.black)
.clipShape(RoundedRectangle(cornerRadius: 10))
.background(.gray.opacity(0.5))
.clipShape(RoundedRectangle(cornerRadius: 8))
.padding(.bottom, 5)
.padding(.horizontal, -8)
}
if !keypair.openSshPubkey.isEmpty {
@@ -55,7 +57,7 @@ struct KeyImporterView: View {
}
}
.overlay(alignment: .bottom) {
Button() {
keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName)
dismiss()
@@ -68,7 +70,8 @@ struct KeyImporterView: View {
UINotificationFeedbackGenerator().notificationOccurred(.success)
}
.buttonStyle(.borderedProminent)
.padding()
.padding(.bottom, 15)
}
}
}

View File

@@ -46,9 +46,8 @@ struct ShellTabView: View {
ZStack {
background
.ignoresSafeArea(.all)
GeometryReader { geo in
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) {
Button() {
@@ -197,7 +196,6 @@ struct ShellTabView: View {
}
}
}
}
}
#Preview {