Skip to content

Commit

Permalink
fix: refactor css to col component and run translate command
Browse files Browse the repository at this point in the history
  • Loading branch information
mulengawilfred committed Oct 25, 2024
1 parent 923bd4d commit 1a3402f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
26 changes: 12 additions & 14 deletions web/src/beta/features/AssetsManager/item/AssetListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,18 @@ const AssetListItem: FC<AssetItemProps> = ({
<Col width={10}>
<Typography size="body">{formattedSize}</Typography>
</Col>
<Col
otherProperties={{ display: "flex", alignItems: "center" }}
width={30}
title={asset.url}
>
<Col width={30} title={asset.url} style={{ flex: 1 }}>
<Typography otherProperties={{ width: "200px" }} size="body">
{asset.url}
</Typography>
<IconButton
appearance="simple"
icon="copy"
onClick={handleIconClick}
size="medium"
/>
<div style={{ flexGrow: 1 }}>
<IconButton
appearance="simple"
icon="copy"
onClick={handleIconClick}
size="medium"
/>
</div>
</Col>
</Wrapper>
);
Expand Down Expand Up @@ -131,12 +129,12 @@ const AssetName = styled("div")(() => ({

const Col = styled("div")<{
width: number;
otherProperties?: React.CSSProperties;
}>(({ width, otherProperties }) => ({
}>(({ width }) => ({
width: `${width}%`,
flexGrow: 0,
flexShrink: 0,
...otherProperties
display: "flex",
alignItems: "center"
}));

function formatBytes(bytes: number): string {
Expand Down
2 changes: 2 additions & 0 deletions web/src/services/i18n/translations/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ Assets selected: ''
Asset selected: ''
Uploaded At: ''
Size: ''
Path: ''
No Asset has been uploaded yet: ''
Asset url copied: ''
Use Name or Email: ''
Find Member: ''
No Member match your search.: ''
Expand Down
2 changes: 2 additions & 0 deletions web/src/services/i18n/translations/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ Assets selected: ''
Asset selected: ''
Uploaded At: ''
Size: ''
Path: ''
No Asset has been uploaded yet: ''
Asset url copied: ''
Use Name or Email: ''
Find Member: ''
No Member match your search.: ''
Expand Down

0 comments on commit 1a3402f

Please sign in to comment.