Skip to content
Merged
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
10 changes: 9 additions & 1 deletion apps/decodex-app/Sources/DecodexApp/AccountPanelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ private final class AccountRunStripContainerView<Content: View>: NSView {
let contentSize = hostingView.fittingSize
let height = max(bounds.height, AccountRunChipLayout.height)
measuredContentWidth = max(0, ceil(contentSize.width))
let documentWidth = max(measuredContentWidth, bounds.width)
let documentWidth = max(measuredContentWidth, 1)

hostingView.frame = NSRect(
x: 0,
Expand Down Expand Up @@ -1346,6 +1346,14 @@ private final class AccountRunStripContainerView<Content: View>: NSView {
private final class AccountRunStripClipView: NSClipView {
var onBoundsChange: (() -> Void)?

override func constrainBoundsRect(_ proposedBounds: NSRect) -> NSRect {
var constrainedBounds = super.constrainBoundsRect(proposedBounds)
constrainedBounds.origin.x = max(0, constrainedBounds.origin.x)
constrainedBounds.origin.y = max(0, constrainedBounds.origin.y)

return constrainedBounds
}

override func scroll(to newOrigin: NSPoint) {
let oldOrigin = bounds.origin

Expand Down