Skip to content

Commit

Permalink
hide link url
Browse files Browse the repository at this point in the history
  • Loading branch information
HavierD committed Sep 13, 2024
1 parent b5c6927 commit e3a2a3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Dispatch, SetStateAction, useState } from "react";
import { ILink as LinkType } from "../common/store/OGCCollectionDefinitions";
import { ILink as LinkType } from "../../../common/store/OGCCollectionDefinitions";
import { Box, Grid, Link, Typography } from "@mui/material";
import { color, fontColor, padding } from "../../styles/constants";
import CopyLinkButton from "../common/buttons/CopyLinkButton";
import linkIcon from "../../assets/icons/link.png";
import { color, fontColor, padding } from "../../../../styles/constants";
import CopyLinkButton from "../../../common/buttons/CopyLinkButton";
import linkIcon from "../../../../assets/icons/link.png";

const LinkCard = ({
link,
Expand Down Expand Up @@ -56,7 +56,6 @@ const LinkCard = ({
<Box
sx={{
width: "30%",
paddingTop: padding.extraSmall,
}}
>
<img
Expand All @@ -72,18 +71,6 @@ const LinkCard = ({
</Grid>
<Grid item xs={11}>
<Box>
<Typography
sx={{
padding: 0,
overflow: "hidden",
textOverflow: "ellipsis",
display: "-webkit-box",
WebkitLineClamp: "2",
WebkitBoxOrient: "vertical",
}}
>
{link.title}
</Typography>
<Link href={link.href} underline="hover">
<Typography
color={fontColor.blue.medium}
Expand All @@ -96,7 +83,7 @@ const LinkCard = ({
WebkitBoxOrient: "vertical",
}}
>
{link.href}
{link.title}
</Typography>
</Link>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/detail-page/subpages/tab-panels/LinksPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Paper } from "@mui/material";
import { useDetailPageContext } from "../../context/detail-page-context";
import LinkCard from "../../../../components/details/LinkCard";
import LinkCard from "../../../../components/list/listItem/subitem/LinkCard";
import { useState } from "react";

const LinksPanel = () => {
Expand Down

0 comments on commit e3a2a3d

Please sign in to comment.