mirror of
https://github.com/koel/koel.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1887] [Bug]: Safari Input Zoom #1021
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#1021
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lafllamme on GitHub (Dec 9, 2024).
Original GitHub issue: https://github.com/koel/koel/issues/1887
Originally assigned to: @phanan on GitHub.
Read the Troubleshooting guide.
Reproduction steps
Expected behavior
Issue Description
When using the Koel music player on Safari (iPad, iPhone, iPod), the browser zooms in on input fields when they are focused. This behavior disrupts the user experience by causing unintended zoom levels.
This issue occurs because Safari automatically zooms in when the font size of input fields is less than 16px. While this feature improves accessibility, it is undesirable for certain applications like Koel, where the layout is designed for precise responsiveness.
Proposed Solution
To address this issue, we only need to add a specific
<meta>tag in the HTML<head>section to configure the viewport for Safari browsers.We suggest adding the following viewport meta tag dynamically for Safari browsers (iPad, iPhone, iPod) using a regular expression to detect the Safari user agent:
This tag will:
Implementation Steps
<meta>tag only for Safari browsers.Below is the JavaScript code to implement this:
Why This Solution?
Testing
Notes
This solution has been tested on:
Let us know if further adjustments are required or if additional testing is needed!
Actual behavior
No Zoom, Intial Browser Scale
Logs
No response
Koel version
Latest
How did you install Koel?
Official Docker image
Additional information
@phanan commented on GitHub (Dec 9, 2024):
Thanks, but the "solution" will just disable zooming altogether. I'd rather leave things as-is.