Skip to content

Commit d9cad3d

Browse files
committed
Adjust UI
1 parent 009ea14 commit d9cad3d

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

Core/Sources/HostApp/AccountSettings/CopilotView.swift renamed to Core/Sources/HostApp/AccountSettings/GitHubCopilotView.swift

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import SharedUIComponents
66
import SuggestionModel
77
import SwiftUI
88

9-
struct CopilotView: View {
9+
struct GitHubCopilotView: View {
1010
static var copilotAuthService: GitHubCopilotAuthServiceType?
1111

1212
class Settings: ObservableObject {
@@ -76,7 +76,7 @@ struct CopilotView: View {
7676
defer { refreshInstallationStatus() }
7777
try await installationManager.uninstall()
7878
Task { @MainActor in
79-
CopilotView.copilotAuthService = nil
79+
GitHubCopilotView.copilotAuthService = nil
8080
}
8181
}
8282
}
@@ -191,14 +191,21 @@ struct CopilotView: View {
191191
.foregroundColor(.secondary)
192192
.font(.callout)
193193
.dynamicHeightTextInFormWorkaround()
194-
}
195194

196-
Text("""
197-
You may have to restart the helper app to apply the changes. To do so, simply close the helper app by clicking on the menu bar icon that looks like a tentacle, it will automatically restart as needed.
198-
""")
199-
.lineLimit(6)
200-
.fixedSize(horizontal: false, vertical: true)
201-
.foregroundColor(.secondary)
195+
Spacer()
196+
197+
Text("""
198+
You may have to restart the helper app to apply the changes. To do so, simply close the helper app by clicking on the menu bar icon that looks like a tentacle, it will automatically restart as needed.
199+
""")
200+
.lineLimit(6)
201+
.dynamicHeightTextInFormWorkaround()
202+
.foregroundColor(.secondary)
203+
}
204+
.padding(8)
205+
.overlay {
206+
RoundedRectangle(cornerRadius: 8)
207+
.stroke(Color(nsColor: .separatorColor), style: .init(lineWidth: 1))
208+
}
202209

203210
VStack(alignment: .leading) {
204211
HStack {
@@ -427,8 +434,8 @@ struct ActivityIndicatorView: NSViewRepresentable {
427434
struct CopilotView_Previews: PreviewProvider {
428435
static var previews: some View {
429436
VStack(alignment: .leading, spacing: 8) {
430-
CopilotView(status: .notSignedIn, version: "1.0.0")
431-
CopilotView(status: .alreadySignedIn, isRunningAction: true)
437+
GitHubCopilotView(status: .notSignedIn, version: "1.0.0")
438+
GitHubCopilotView(status: .alreadySignedIn, isRunningAction: true)
432439
}
433440
.padding(.all, 8)
434441
}

Core/Sources/HostApp/ServiceView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct ServiceView: View {
88
var body: some View {
99
SidebarTabView(tag: $tag) {
1010
ScrollView {
11-
CopilotView().padding()
11+
GitHubCopilotView().padding()
1212
}.sidebarItem(
1313
tag: 0,
1414
title: "GitHub Copilot",

0 commit comments

Comments
 (0)