I am currently working with Angular 15 and attempting to adjust the color palette size depending on the zoom level.
<input #primaryColor (change)="colorChange($event,'primary')" formControlName="primaryColor" class="color-input" type="color">
The input field has a type of color
.
While testing in Mobile Mode within Developer Tools and changing the zoom level from 100% to 50%, the color palette extends beyond the screen as I alter the zoom using the browser's dropdown menu.
Screenshots of the color palette on a Galaxy Fold
mobile device at both 100% and 75% zoom levels are provided. The color palette fits correctly at 100% zoom, but goes off-screen at 75% zoom.
https://i.sstatic.net/suhyG.jpg
https://i.sstatic.net/61Mib.jpg
What is the best way to resize and adjust the color palette to fit properly based on the zoom level?