Skip to content

Commit 6d7d6ef

Browse files
committed
fix: fix overview vault addresses, fix permission settings no roles
1 parent af2f589 commit 6d7d6ef

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ CSP_TRUSTED_HOSTS=https://*.lido.fi
4141
# put "true" enable report only mode for CSP
4242
CSP_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
4747
ENABLE_QA_HELPERS=false
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import 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

46
type 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
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import styled from 'styled-components';
2+
import { Tooltip } from '@lidofinance/lido-ui';
3+
4+
export const TooltipStyled = styled(Tooltip)`
5+
overflow: clip;
6+
`;

features/settings/permissions/components/role-description/role-description.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ export type RoleDescriptionProps = {
2020

2121
const 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) ?? '',

0 commit comments

Comments
 (0)