bsky-app/src
Bryan Lee 2aae37d67b
Improve Device Detection For Better Responsiveness (#1512)
* Refactor `useOnMainScroll` function to use responsive device detection

- Replace static `isDesktopWeb` with `useWebMediaQueries` hook to enable dynamic device type detection.
- Create `useDeviceLimits` hook to dynamically determine `DY_LIMIT_UP` and `DY_LIMIT_DOWN` based on device type.
- Update dependency arrays for the `useCallback` hooks to include new dynamic variables.

* Refactor styles to be responsive to device type

- Create `useStyles` hook that generates styles object based on device type detected from `useWebMediaQueries`.
- Replace static styles object with dynamic styles object generated from `useStyles` hook in components.
- This allows `paddingLeft` values for 'ul' and 'ol' styles to adapt to device type dynamically.
- This allows `maxWidth` values for 'metaItem'' styles to adapt to device type dynamically.

* Remove `isDesktopWeb` in favor of `useWebMediaQueries().isDesktop`

* Refactor `SplashScreen` component for responsive design

* Revision based on review results

* Fix isNative check

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
2023-09-28 12:47:34 -07:00
..
lib Improve Device Detection For Better Responsiveness (#1512) 2023-09-28 12:47:34 -07:00
locale Language settings updates, new primary language setting (#1471) 2023-09-21 11:33:19 -07:00
platform Improve Device Detection For Better Responsiveness (#1512) 2023-09-28 12:47:34 -07:00
state Account quick switch modal (#1567) 2023-09-28 12:41:44 -07:00
view Improve Device Detection For Better Responsiveness (#1512) 2023-09-28 12:47:34 -07:00
App.native.tsx Prefilter the mergefeed to ensure a better mix of following and custom feeds (#1498) 2023-09-20 19:47:56 -07:00
App.web.tsx add React Query and hook up to existing functionality (#1358) 2023-09-15 09:32:44 -07:00
Navigation.tsx Account quick switch modal (#1567) 2023-09-28 12:41:44 -07:00
routes.ts Language settings updates, new primary language setting (#1471) 2023-09-21 11:33:19 -07:00