File tree Expand file tree Collapse file tree 4 files changed +18
-4
lines changed
overview/shared/contract-address/components/address-with-tooltip
settings/permissions/components/role-description Expand file tree Collapse file tree 4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ CSP_TRUSTED_HOSTS=https://*.lido.fi
4141# put "true" enable report only mode for CSP
4242CSP_REPORT_ONLY = true
4343# api endpoint for reporting csp violations
44- CSP_REPORT_URI = https://vaults .lido.fi/api/csp-report
44+ CSP_REPORT_URI = https://stvaults .lido.fi/api/csp-report
4545
4646# allow some state overrides from browser console for QA
4747ENABLE_QA_HELPERS = false
Original file line number Diff line number Diff line change 11import type { FC } from 'react' ;
2- import { Tooltip , Address } from '@lidofinance/lido-ui' ;
2+ import { Address } from '@lidofinance/lido-ui' ;
3+
4+ import { TooltipStyled } from './styles' ;
35
46type AddressWithTooltipProps = {
57 address : string ;
@@ -9,8 +11,8 @@ export const AddressWithTooltip: FC<AddressWithTooltipProps> = ({
911 address,
1012} ) => {
1113 return (
12- < Tooltip title = { address } >
14+ < TooltipStyled title = { address } >
1315 < Address symbols = { 9 } address = { address } />
14- </ Tooltip >
16+ </ TooltipStyled >
1517 ) ;
1618} ;
Original file line number Diff line number Diff line change 1+ import styled from 'styled-components' ;
2+ import { Tooltip } from '@lidofinance/lido-ui' ;
3+
4+ export const TooltipStyled = styled ( Tooltip ) `
5+ overflow: clip;
6+ ` ;
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ export type RoleDescriptionProps = {
2020
2121const splitDescription = ( description : string ) => {
2222 const words = description . split ( ' ' ) . filter ( Boolean ) ;
23+ if ( words . length === 1 ) {
24+ return {
25+ descriptionText : words [ 0 ] ,
26+ } ;
27+ }
28+
2329 return {
2430 descriptionText : words . toSpliced ( 0 , - 1 ) . join ( ' ' ) ,
2531 lastWord : words . at ( - 1 ) ?? '' ,
You can’t perform that action at this time.
0 commit comments