mirror of
https://github.com/suitenumerique/docs
synced 2026-04-21 13:37:20 +00:00
💄(frontend) fix flickering tree title
The title was flickering because the icons were loading and pushing the div to the left. We do not need the icons part if we are not hovering the tree item, so we can hide it until we hover the item.
This commit is contained in:
parent
9d320092df
commit
29f2c2ebdf
1 changed files with 1 additions and 1 deletions
|
|
@ -305,8 +305,8 @@ export const DocTree = ({ currentDoc }: DocTreeProps) => {
|
|||
}
|
||||
|
||||
.doc-tree-root-item-actions {
|
||||
display: flex;
|
||||
opacity: ${rootActionsOpen ? '1' : '0'};
|
||||
display: ${rootActionsOpen ? 'flex' : 'none'};
|
||||
|
||||
&:has(.isOpen) {
|
||||
opacity: 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue