Skip to content

Commit

Permalink
Expand script names to take full available width
Browse files Browse the repository at this point in the history
This commit improves consistency in the UI by ensuring that all nodes in
the tree component expand to take full available width. This approach
eliminates layout shifts that were previously observed when toggling
documentation.
  • Loading branch information
undergroundwires committed Jan 28, 2024
1 parent 7af8daa commit d277139
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ $card-horizontal-gap : $card-gap;
justify-content: center;
word-break: break-word;
max-width: 100%; // Prevents horizontal expansion of inner content (e.g., when a code block is shown)
width: 100%; // Expands the container to fill available horizontal space, enabling alignment of child items.
}
.card__expander__close-button {
Expand Down
2 changes: 2 additions & 0 deletions src/presentation/components/Scripts/View/Tree/ScriptsTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ $padding: 20px;
/* Set background color in consistent way so it has similar look when searching, on tree view, in cards etc. */
background: $color-scripts-bg;
flex: 1; // Expands the container to fill available horizontal space, enabling alignment of child items.
padding-bottom: $padding;
padding-left: $padding;
padding-right: $padding;
Expand Down

0 comments on commit d277139

Please sign in to comment.