File tree 3 files changed +0
-48
lines changed
weave-js/src/components/Tag
3 files changed +0
-48
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,5 +2,4 @@ export * from './Alias';
2
2
export * from './Pill' ;
3
3
export * from './RemoveAction' ;
4
4
export * from './Tag' ;
5
- export * from './TagTooltip' ;
6
5
export * from './utils' ;
Original file line number Diff line number Diff line change 1
1
import { cyrb53 } from '@wandb/weave/core' ;
2
- import { RefObject } from 'react' ;
3
2
4
3
export const TAG_DEFAULT_MAX_CHARS = 24 ;
5
4
@@ -93,15 +92,3 @@ export function getTagContrastColor(index?: number): TagColorName {
93
92
}
94
93
return TAG_COLOR_CONTRAST_WHEEL [ index % TAG_COLOR_CONTRAST_WHEEL . length ] ;
95
94
}
96
-
97
- /**
98
- * Determines if a label's text exceeds the specified width
99
- */
100
- const MAX_TAG_LABEL_WIDTH_PX = 168 ;
101
- export function isTagLabelTruncated (
102
- labelRef : RefObject < HTMLElement > ,
103
- maxWidth : number = MAX_TAG_LABEL_WIDTH_PX
104
- ) {
105
- const labelLen = labelRef ?. current ?. clientWidth ?? 0 ;
106
- return labelLen >= maxWidth ;
107
- }
You can’t perform that action at this time.
0 commit comments