Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/evidence attachment display #1613

Merged
merged 14 commits into from
Jun 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions web/src/components/EvidenceCard.tsx
Original file line number Diff line number Diff line change
@@ -2,16 +2,17 @@ import React from "react";
import styled, { css } from "styled-components";

import Identicon from "react-identicons";
import ReactMarkdown from "react-markdown";
import { Link } from "react-router-dom";

import { Card } from "@kleros/ui-components-library";

import AttachmentIcon from "svgs/icons/attachment.svg";

import { useIPFSQuery } from "hooks/useIPFSQuery";
import { formatDate } from "utils/date";
import { getIpfsUrl } from "utils/getIpfsUrl";
import { shortenAddress } from "utils/shortenAddress";
import { formatDate } from "utils/date";

import { landscapeStyle } from "styles/landscapeStyle";
import { responsiveSize } from "styles/responsiveSize";
@@ -65,13 +66,13 @@ const StyledA = styled.a`
margin-left: auto;
gap: ${responsiveSize(5, 6)};
${landscapeStyle(
() => css`
() => css`
> svg {
width: 16px;
fill: ${({ theme }) => theme.primaryBlue};
}
`
)}
)}
`;

const AccountContainer = styled.div`
@@ -95,22 +96,22 @@ const AccountContainer = styled.div`
const DesktopText = styled.span`
display: none;
${landscapeStyle(
() => css`
() => css`
display: inline;
`
)}
)}
`;

const Timestamp = styled.p`
color: ${({ theme }) => theme.secondaryText};
color: ${({ theme }) => theme.secondaryText};
`;

const MobileText = styled.span`
${landscapeStyle(
() => css`
() => css`
display: none;
`
)}
)}
`;

const StyledLink = styled(Link)`
You are viewing a condensed version of this merge commit. You can view the full changes here.