Skip to content

Commit 0abe61e

Browse files
committed
✨(frontend) show full nested doc names with horizontal scroll support
horizontal overflow enabled and opacity used for sticky actions visibility Signed-off-by: Cyril <[email protected]>
1 parent e3b2fdb commit 0abe61e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/frontend/apps/impress/src/features/docs/doc-tree/components/DocSubPageItem.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ export const DocSubPageItem = (props: TreeViewNodeProps<Doc>) => {
116116
? 'var(--c--theme--colors--greyscale-100)'
117117
: 'var(--c--theme--colors--greyscale-000)'};
118118
.light-doc-item-actions {
119-
display: ${menuOpen || !isDesktop ? 'flex' : 'none'};
120-
position: absolute;
119+
display: flex;
120+
position: sticky;
121121
right: 0;
122+
123+
opacity: ${menuOpen || !isDesktop ? '1' : '0'};
122124
background: ${isDesktop
123125
? 'var(--c--theme--colors--greyscale-100)'
124126
: 'var(--c--theme--colors--greyscale-000)'};
@@ -137,7 +139,7 @@ export const DocSubPageItem = (props: TreeViewNodeProps<Doc>) => {
137139
background-color: var(--c--theme--colors--greyscale-100);
138140
border-radius: 4px;
139141
.light-doc-item-actions {
140-
display: flex;
142+
opacity: 1;
141143
background: var(--c--theme--colors--greyscale-100);
142144
}
143145
}

src/frontend/apps/impress/src/features/docs/doc-tree/components/DocTree.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export const DocTree = ({ currentDoc }: DocTreeProps) => {
184184
/* Remove outline from TreeViewItem wrapper elements */
185185
.c__tree-view--row {
186186
outline: none !important;
187+
min-width: max-content;
187188
188189
&:focus-visible {
189190
outline: none !important;
@@ -195,7 +196,7 @@ export const DocTree = ({ currentDoc }: DocTreeProps) => {
195196
margin-top: -10px;
196197
197198
.c__tree-view {
198-
overflow: hidden !important;
199+
overflow: visible !important;
199200
}
200201
}
201202
`}

src/frontend/apps/impress/src/features/left-panel/components/LeftPanelDocContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const LeftPanelDocContent = () => {
1717
<Box
1818
$flex={1}
1919
$width="100%"
20-
$css="width: 100%; overflow-y: auto; overflow-x: hidden;"
20+
$css="width: 100%; overflow-y: auto"
2121
className="--docs--left-panel-doc-content"
2222
>
2323
<DocTree currentDoc={currentDoc} />

0 commit comments

Comments
 (0)