File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
apps/webapp/app/components Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,13 @@ export function EnvironmentLabel({
8080 className,
8181 tooltipSideOffset = 34 ,
8282 tooltipSide = "right" ,
83+ disableTooltip = false ,
8384} : {
8485 environment : Environment ;
8586 className ?: string ;
8687 tooltipSideOffset ?: number ;
8788 tooltipSide ?: "top" | "right" | "bottom" | "left" ;
89+ disableTooltip ?: boolean ;
8890} ) {
8991 const spanRef = useRef < HTMLSpanElement > ( null ) ;
9092 const [ isTruncated , setIsTruncated ] = useState ( false ) ;
@@ -117,7 +119,7 @@ export function EnvironmentLabel({
117119 </ span >
118120 ) ;
119121
120- if ( isTruncated ) {
122+ if ( isTruncated && ! disableTooltip ) {
121123 return (
122124 < SimpleTooltip
123125 asChild
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export function EnvironmentSelector({
7070 isCollapsed ? "max-w-0 opacity-0" : "max-w-[200px] opacity-100"
7171 ) }
7272 >
73- < EnvironmentLabel environment = { environment } className = "text-2sm" />
73+ < EnvironmentLabel environment = { environment } className = "text-2sm" disableTooltip />
7474 </ span >
7575 </ span >
7676 < span
You can’t perform that action at this time.
0 commit comments