From 06f040a5663d7f1f983ebce2e6e73ecf25f26444 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Sun, 15 Jun 2025 17:22:21 -0700 Subject: [PATCH] Fix scrollbar width being too small on Retina Mac (#167) --- lib/components/style-sheet.tsx | 5 ++++- package.json | 1 + yarn.lock | 9 +++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib/components/style-sheet.tsx b/lib/components/style-sheet.tsx index 86d89424..e8011fba 100644 --- a/lib/components/style-sheet.tsx +++ b/lib/components/style-sheet.tsx @@ -1,14 +1,17 @@ import React, {forwardRef} from 'react'; import type {StyleSheetProps} from '../../typings/hyper'; +import { useDevicePixelRatio } from 'use-device-pixel-ratio'; const StyleSheet = forwardRef((props, ref) => { const {borderColor} = props; + const dpr = useDevicePixelRatio(); + return (