Skip to content

Commit

Permalink
Add no-wrap definition to BlockSelect component for proper inline `…
Browse files Browse the repository at this point in the history
…ellipsis` rendering
  • Loading branch information
yazadzhy authored Apr 28, 2023
1 parent 676b0a5 commit c1462ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions basic-styles/grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@
display: inline-block;
}

.inline-overflow {
display: inline-flex;
max-width: 100%;
}

.flex-row {
display: flex;
justify-content: space-between;
Expand Down
3 changes: 3 additions & 0 deletions interaction/block-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export function BlockSelect({as = 'span', children, title, className, wrap, inli
if (wrap) {
props.style = {...props.style, whiteSpace: 'normal', overflow: 'visible'}
}
if (wrap === false) {
props.style = {...props.style, whiteSpace: 'nowrap', overflow: 'hidden'}
}
if (inline){
props.style = {...props.style, display: 'inline'}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stellar-expert/ui-framework",
"version": "1.3.5",
"version": "1.3.6",
"private": true,
"description": "StellarExpert shared UI components library",
"main": "index.js",
Expand Down

0 comments on commit c1462ca

Please sign in to comment.