tiny-roommate icon indicating copy to clipboard operation
tiny-roommate copied to clipboard

UI issues: text clipping, provider overlay overflow, and pet walking off-screen

Open aeaying opened this issue 8 months ago • 1 comments

Found 3 issues during use:

Environment:

  • Device: MacBook Pro 13.3-inch (Retina display)
  • Display: Retina (DPR =2)

1. "Together" text clipped #pet-status has top: -4px, which causes the #together text to be clipped at the top by overflow: hidden on some devices. Suggest changing the top value in status-layout.js to 0 or a positive value to keep the text within the visible area.

2. Provider selection overlay overflows in small windows The provider selection overlay on first launch is designed for larger sizes (panel max-width 440px, two-column grid), but the default scale is small enough that the window isn't large enough to display it properly, causing content to overflow or get clipped. One approach is to increase the return value of getDefaultScale() so the window is large enough to display the provider selection overlay on first launch — users can then resize it in Settings. However, the minimum scale required may vary across devices with different resolutions and needs further validation.

3. Pet walks off-screen on Retina displays walkRandomDirection mixes physical pixels (outerPosition() returns PhysicalPosition) with logical pixels (window.screen.availWidth), causing incorrect boundary calculation on Retina devices (DPR=2). This allows the pet to walk off-screen, after which clicking the Dock icon does not bring it back. Suggest dividing the outerPosition() result by devicePixelRatio to normalize to logical pixels, and using monitorFromPoint to get the actual workArea bounds of the current monitor — which would also handle multi-monitor setups correctly.

aeaying avatar Mar 31 '26 13:03 aeaying

I will work on these three layout issues: keep the status label inside the window, make the first-launch provider chooser fit without changing the saved pet scale, and keep walking within the current monitor work area using consistent physical coordinates. I will add regression tests for high DPI and secondary-monitor bounds.

wsj040303 avatar Oct 16 '26 07:10 wsj040303