Skip to content

Commit fde659e

Browse files
committed
Adjust chat panel title bar height
1 parent d4fe170 commit fde659e

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

Core/Sources/SuggestionWidget/ChatWindowView.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ struct ChatWindowView: View {
2727
}
2828
) { viewStore in
2929
VStack(spacing: 0) {
30+
RoundedRectangle(cornerRadius: 2)
31+
.fill(.tertiary)
32+
.frame(width: 120, height: 4)
33+
.frame(height: 16)
34+
35+
Divider()
36+
3037
ChatTabBar(store: store)
3138
.frame(height: 32)
3239

Core/Sources/SuggestionWidget/Styles.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import SwiftUI
55

66
enum Style {
77
static let panelHeight: Double = 500
8-
static let panelWidth: Double = 454
8+
static let panelWidth: Double = 480
99
static let inlineSuggestionMinWidth: Double = 540
1010
static let inlineSuggestionMaxHeight: Double = 400
1111
static let widgetHeight: Double = 24

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ extension SuggestionWidgetController: NSWindowDelegate {
262262
.frame ?? .zero
263263
var mouseLocation = NSEvent.mouseLocation
264264
let windowFrame = chatPanelWindow.frame
265-
if mouseLocation.y > windowFrame.maxY - 40,
265+
if mouseLocation.y > windowFrame.maxY - 16,
266266
mouseLocation.y < windowFrame.maxY,
267267
mouseLocation.x > windowFrame.minX,
268268
mouseLocation.x < windowFrame.maxX
@@ -297,7 +297,7 @@ class ChatWindow: NSWindow {
297297
override func mouseDown(with event: NSEvent) {
298298
let windowFrame = frame
299299
let currentLocation = event.locationInWindow
300-
if currentLocation.y > windowFrame.size.height - 40,
300+
if currentLocation.y > windowFrame.size.height - 16,
301301
currentLocation.y < windowFrame.size.height,
302302
currentLocation.x > 0,
303303
currentLocation.x < windowFrame.width

0 commit comments

Comments
 (0)