working subnet mobile👷‍♂️

This commit is contained in:
YasinShaikh123
2024-10-16 13:28:34 +05:30
parent d6415e4098
commit 44bf9d1562
7 changed files with 95 additions and 79 deletions

View File

@@ -28,8 +28,6 @@ const LatestTransactions = () => {
navigator.clipboard
.writeText(text)
.then(() => {
// console.log('Text copied to clipboard');
// alert('Text copied to clipboard');
toast({
render: () => (
<ToastBox status={"warn"} message={"Text copied to clipboard"} />
@@ -40,7 +38,6 @@ const LatestTransactions = () => {
console.error("Failed to copy text: ", err);
});
}
return (
<Box>
<Container maxW="6xl">
@@ -161,10 +158,7 @@ const LatestTransactions = () => {
onClick={() => copyToClipboard(transaction.sender)}
/>
</Text>
</HStack>
</HStack>
</HStack>
<HStack fontSize={{base:"xs", md:"sm" }} cursor={"pointer"} gap={{base:2,md:4}} mb={3}>
<Text color={colorMode === "light" ? "#0F0F0F" : "#E8E8E8"}>
@@ -177,12 +171,10 @@ const LatestTransactions = () => {
>
<Text
cursor={"pointer"}
maxW={{base:"55%",md:"100%"}} // Set a max-width to control when the truncation happens
// overflow={'hidden'} // Ensure overflow is hidden
maxW={{base:"55%",md:"100%"}}
whiteSpace={"nowrap"} // Prevent the text from wrapping
textOverflow={"ellipsis"}
isTruncated
onClick={() =>
navigate(`/did-info/${transaction.receiver}`)
}