mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
Use viewport width check instead of User-Agent-based device detection for precision reduction. `ngx-device-detector` classifies devices by User-Agent string, so desktop browsers at narrow widths never trigger the `deviceType === 'mobile'` check, leaving precision at 2 decimals and causing the currency code to overflow. Replace with `window.matchMedia` at the Bootstrap `sm` breakpoint, and add a CSS `@media` safety net to remove `min-width` on narrow viewports. Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>pull/6947/head
2 changed files with 8 additions and 1 deletions
Loading…
Reference in new issue