use 0.5px media border on high DPI screens on web (#9311)

This commit is contained in:
Samuel Newman
2025-10-31 16:07:43 +02:00
committed by GitHub
parent de6d2f1912
commit bd3594ceea
3 changed files with 15 additions and 5 deletions
+1
View File
@@ -2,3 +2,4 @@ export const isSafari = false
export const isFirefox = false
export const isTouchDevice = true
export const isAndroidWeb = false
export const isHighDPI = true
+1
View File
@@ -6,3 +6,4 @@ export const isFirefox = /firefox|fxios/i.test(navigator.userAgent)
export const isTouchDevice = window.matchMedia('(pointer: coarse)').matches
export const isAndroidWeb =
/android/i.test(navigator.userAgent) && isTouchDevice
export const isHighDPI = window.matchMedia('(min-resolution: 2dppx)').matches