File tree Expand file tree Collapse file tree
packages/ui/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @ultraviolet/ui " : patch
3+ ---
4+
5+ ` Tag ` : add a max width to ensure correct overflow
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { theme } from '@ultraviolet/themes'
22import { keyframes , styleVariants } from '@vanilla-extract/css'
33import { recipe } from '@vanilla-extract/recipes'
44
5+ import { tagStyle } from '../Tag/styles.css'
56import { tagListStyle } from '../TagList/styles.css'
67
78import { DEFAULT_ARROW_WIDTH } from './helpers'
@@ -118,6 +119,10 @@ const childrenContainer = recipe({
118119 [ `${ tagListStyle . ellipsisChild } > &` ] : {
119120 minWidth : 0 ,
120121 } ,
122+ [ `&:has(${ tagStyle . text } )` ] : {
123+ minWidth : 0 ,
124+ width : '100%' ,
125+ } ,
121126 } ,
122127 } ,
123128 variants : {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const container = recipe({
2323 padding : `0 ${ theme . space [ 1 ] } ` ,
2424 whiteSpace : 'nowrap' ,
2525 width : 'fit-content' ,
26+ maxWidth : '100%' ,
2627 } ,
2728 variants : {
2829 copiable : {
You can’t perform that action at this time.
0 commit comments