Skip to content

Commit 2626af8

Browse files
authored
Merge pull request #634 from refly-ai/feat/scroll-list
fix(workspace): correct height calculation for scrollable divs in Doc…
2 parents d1f4829 + ba3e7e0 commit 2626af8

File tree

2 files changed

+2
-2
lines changed
  • packages/ai-workspace-common/src/components/workspace

2 files changed

+2
-2
lines changed

packages/ai-workspace-common/src/components/workspace/document-list/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const DocumentList = () => {
213213

214214
return (
215215
<Spin className="w-full h-full" spinning={isRequesting && dataList.length === 0}>
216-
<div id="documentScrollableDiv" className="w-full h-[calc(60vh] overflow-y-auto">
216+
<div id="documentScrollableDiv" className="w-full h-[calc(60vh-60px)] overflow-y-auto">
217217
{dataList.length > 0 ? (
218218
<InfiniteScroll
219219
dataLength={dataList.length}

packages/ai-workspace-common/src/components/workspace/resource-list/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ const ResourceList = () => {
300300

301301
return (
302302
<Spin className="w-full h-full" spinning={isRequesting && dataList.length === 0}>
303-
<div id="resourceScrollableDiv" className="w-full h-[60vh-60px)] overflow-y-auto">
303+
<div id="resourceScrollableDiv" className="w-full h-[calc(60vh-60px)] overflow-y-auto">
304304
{dataList.length > 0 ? (
305305
<InfiniteScroll
306306
dataLength={dataList.length}

0 commit comments

Comments
 (0)