Skip to content

Commit

Permalink
fix(tree): restore wrapping in tree-item text content (#6518)
Browse files Browse the repository at this point in the history
**Related Issue:** #6512 

## Summary

Updates styles to restore text wrapping. Thanks @nwhittaker for the fix
suggestion!
  • Loading branch information
jcfranco authored Feb 28, 2023
1 parent ece1bed commit 7b95194
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tree-item/tree-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
}

.node-container {
@apply relative flex items-center;
@apply relative flex items-center min-w-0;

.checkmark,
.bullet-point {
Expand Down
8 changes: 8 additions & 0 deletions src/components/tree/tree.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ export const iconStartAndActionsEnd = (): string => html`
</div>
`;

export const treeItemTextContentWraps_TestOnly = (): string => html`
<calcite-tree style="width: 300px">
<calcite-tree-item>
<span>Possibly_long_tree_item_name_because_it_is_a_user_generated_layer_name</span>
</calcite-tree-item>
</calcite-tree>
`;

export const treeItemContentIsNotClipped_TestOnly = (): string => html`
<style>
.string-value {
Expand Down

0 comments on commit 7b95194

Please sign in to comment.