Skip to content

Commit

Permalink
expand done
Browse files Browse the repository at this point in the history
  • Loading branch information
Zewed committed May 20, 2024
1 parent 5755773 commit 2adc017
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

.knowledge_list_wrapper {
display: flex;
width: 400px;
min-width: 300px;
width: 100%;
flex-direction: column;
gap: Spacings.$spacing03;
overflow: scroll;
Expand Down
10 changes: 10 additions & 0 deletions frontend/app/knowledge/page.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,15 @@
height: calc(100% - Variables.$pageHeaderBarHeight);
padding: Spacings.$spacing06;
padding-bottom: 0;

.knowledge_list_wrapper {
transition: width 0.1s ease-in-out;
width: 400px;

&.collapsed {
width: 0;
overflow: hidden;
}
}
}
}
8 changes: 7 additions & 1 deletion frontend/app/knowledge/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ const Knowledge = (): JSX.Element => {
<PageHeader iconName="book" label="Knowledge" buttons={buttons} />
</div>
<div className={styles.content_wrapper}>
{!expand && <KnowledgeList />}
<div
className={`${styles.knowledge_list_wrapper} ${
expand ? styles.collapsed : ""
}`}
>
<KnowledgeList />
</div>
<NotesEditor />
</div>
<UploadDocumentModal />
Expand Down

0 comments on commit 2adc017

Please sign in to comment.