Skip to content

Commit d7992c3

Browse files
committed
Adjust CodeBlock padding to display more content
1 parent 75e259a commit d7992c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/CodeBlockSuggestionPanel.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct CodeBlock: View {
88
VStack(spacing: 4) {
99
let code = suggestion.highlightedCode(colorScheme: colorScheme)
1010
ForEach(0..<code.endIndex, id: \.self) { index in
11-
HStack(alignment: .firstTextBaseline) {
11+
HStack(alignment: .firstTextBaseline, spacing: 4) {
1212
Text("\(index + suggestion.startLineIndex + 1)")
1313
.multilineTextAlignment(.trailing)
1414
.foregroundColor(.secondary)
@@ -32,7 +32,8 @@ struct CodeBlock: View {
3232
}
3333
.foregroundColor(.white)
3434
.font(.system(size: 12, design: .monospaced))
35-
.padding()
35+
.padding(.leading, 4)
36+
.padding([.trailing, .top, .bottom])
3637
}
3738
}
3839

0 commit comments

Comments
 (0)