Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/CodexBar/CostHistoryChartMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct CostHistoryChartMenuView: View {
}
.padding(.horizontal, 16)
.padding(.vertical, 10)
.frame(minWidth: self.width, maxWidth: .infinity, alignment: .leading)
.frame(width: self.width, alignment: .leading)
}

private struct Model {
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodexBar/CreditsHistoryChartMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ struct CreditsHistoryChartMenuView: View {
}
.padding(.horizontal, 16)
.padding(.vertical, 10)
.frame(minWidth: self.width, maxWidth: .infinity, alignment: .leading)
.frame(width: self.width, alignment: .leading)
}

private struct Model {
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodexBar/PlanUtilizationHistoryChartMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ struct PlanUtilizationHistoryChartMenuView: View {
}
.padding(.horizontal, 16)
.padding(.vertical, 10)
.frame(minWidth: self.width, maxWidth: .infinity, alignment: .topLeading)
.frame(width: self.width, alignment: .topLeading)
.task(id: visibleSeries.map(\.id).joined(separator: ",")) {
guard let firstVisibleSeries = visibleSeries.first else { return }
guard !visibleSeries.contains(where: { $0.id == self.selectedSeriesID }) else { return }
Expand Down
6 changes: 4 additions & 2 deletions Sources/CodexBar/StatusItemController+MenuPresentation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ final class MenuCardHighlightState {

final class MenuHostingView<Content: View>: NSHostingView<Content> {
override var allowsVibrancy: Bool {
true
if #available(macOS 26, *) { return false }
return true
}
}

Expand All @@ -86,7 +87,8 @@ final class MenuCardItemHostingView<Content: View>: NSHostingView<Content>, Menu
private let onClick: (() -> Void)?

override var allowsVibrancy: Bool {
true
if #available(macOS 26, *) { return false }
return true
}

override var intrinsicContentSize: NSSize {
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodexBar/UsageBreakdownChartMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ struct UsageBreakdownChartMenuView: View {
}
.padding(.horizontal, 16)
.padding(.vertical, 10)
.frame(minWidth: self.width, maxWidth: .infinity, alignment: .leading)
.frame(width: self.width, alignment: .leading)
}

private struct Model {
Expand Down
2 changes: 1 addition & 1 deletion Sources/CodexBar/ZaiHourlyUsageChartMenuView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct ZaiHourlyUsageChartMenuView: View {
}
.padding(.horizontal, 16)
.padding(.vertical, 10)
.frame(minWidth: self.width, maxWidth: .infinity, alignment: .topLeading)
.frame(width: self.width, alignment: .topLeading)
.animation(.easeInOut(duration: 0.2), value: self.isExpanded)
}

Expand Down
Loading