{
const ShortcutsTree = (props: ShortcutsTreeProps): JSX.Element => {
const router = useRouter()
+ const { ref, width, height } = useResizeObserver()
const { isValidating, data } = useSWR('/api/shortcuts', getShortcuts, {
fallbackData: cachedShortcutsData(),
@@ -562,7 +566,7 @@ const ShortcutsTree = (props: ShortcutsTreeProps): JSX.Element => {
)
return (
- <>
+
{!isValidating && (
{
onActivate={onActivate}
rowHeight={36}
initialOpenState={folderOpenState}
- width={275}
+ width={width}
+ height={640}
>
{NodeRenderer}
)}
- >
+
)
}
diff --git a/packages/web/components/tokens/stitches.config.ts b/packages/web/components/tokens/stitches.config.ts
index 6ed792011..1dee7a738 100644
--- a/packages/web/components/tokens/stitches.config.ts
+++ b/packages/web/components/tokens/stitches.config.ts
@@ -157,7 +157,6 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } =
readerTableHeader: '#FFFFFF',
readerMargin: 'white',
readerTextSubtle: '#898989',
- readerHoverBg: '#1E1E1E',
// Avatar Fallback color
avatarBg: '#FFEA9F',
@@ -236,6 +235,7 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } =
homeTextBody: '#3D3D3D',
homeTextSubtle: '#898989',
homeActionIcons: '#898989',
+ homeActionHoverBg: '#DFDFDF',
homeDivider: '#D9D9D9',
thLibraryAISummaryBorder: '#6A6968',
@@ -306,7 +306,6 @@ const darkThemeSpec = {
readerFontHighContrast: 'white',
readerTableHeader: '#FFFFFF',
readerMargin: '#2A2A2A',
- readerHoverBg: '#1E1E1E',
readerTextSubtle: '#EDEDED',
avatarBg: '#7B5C3E',
@@ -390,6 +389,7 @@ const darkThemeSpec = {
homeTextBody: '#D9D9D9',
homeTextSubtle: '#898989',
homeActionIcons: '#898989',
+ homeActionHoverBg: '#515151',
homeDivider: '#3D3D3D',
thLibraryAISummaryBorder: '#6A6968',
@@ -427,6 +427,7 @@ const apolloThemeSpec = {
homeCardHover: '#525252',
homeDivider: '#6A6968',
+ homeActionHoverBg: '#515151',
thBackground: '#474747',
thBackground2: '#515151',
@@ -456,6 +457,7 @@ const sepiaThemeSpec = {
homeCardHover: '#EEE8D5',
homeDivider: '#DDD6C1',
+ homeActionHoverBg: '#DDD6C1',
thLibraryMultiselectHover: '#EEE8D5',
},
diff --git a/packages/web/package.json b/packages/web/package.json
index bb1d23f49..bc7ba1258 100644
--- a/packages/web/package.json
+++ b/packages/web/package.json
@@ -67,6 +67,7 @@
"remark-gfm": "^3.0.1",
"sharp": "^0.32.6",
"swr": "^2.2.5",
+ "use-resize-observer": "^9.1.0",
"uuid": "^8.3.2",
"yet-another-react-lightbox": "^3.12.0"
},
@@ -108,4 +109,4 @@
"volta": {
"extends": "../../package.json"
}
-}
\ No newline at end of file
+}
diff --git a/yarn.lock b/yarn.lock
index aad75218f..549cbf289 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -31183,7 +31183,7 @@ use-latest@^1.0.0:
dependencies:
use-isomorphic-layout-effect "^1.0.0"
-use-resize-observer@^9.0.0:
+use-resize-observer@^9.0.0, use-resize-observer@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/use-resize-observer/-/use-resize-observer-9.1.0.tgz#14735235cf3268569c1ea468f8a90c5789fc5c6c"
integrity sha512-R25VqO9Wb3asSD4eqtcxk8sJalvIOYBqS8MNZlpDSQ4l4xMQxC/J7Id9HoTqPq8FwULIn0PVW+OAqF2dyYbjow==