Skip to content

Commit

Permalink
✨ add image border
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Jan 29, 2025
1 parent cdbeb34 commit 04683c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
22 changes: 5 additions & 17 deletions adminSiteClient/DataInsightIndexPage.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { useContext, useEffect, useMemo, useState } from "react"
import * as React from "react"
import {
Button,
Card,
Flex,
Input,
Radio,
Select,
Space,
Table,
Tag,
} from "antd"
import { Button, Card, Flex, Input, Radio, Select, Space, Table } from "antd"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import {
faCopy,
Expand Down Expand Up @@ -62,8 +52,9 @@ function createColumns(ctx: {
hasImage(dataInsight) ? (
<>
<img
className="border"
src={makePreviewImageSrc(dataInsight)}
style={{ maxWidth: 150 }}
style={{ maxWidth: 200 }}
/>
<Button
type="text"
Expand Down Expand Up @@ -393,12 +384,9 @@ function DataInsightCard({
}) {
const preview = (
<img
className="border"
src={makePreviewImageSrc(dataInsight)}
style={{
width: 265,
height: 265,
border: "1px solid #f0f0f0",
}}
style={{ width: 265, height: 265 }}
/>
)

Expand Down
4 changes: 4 additions & 0 deletions adminSiteClient/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1300,4 +1300,8 @@ main:not(.ChartEditorPage):not(.GdocsEditPage) {
color: rgba(0, 0, 0, 0.88);
}
}

img.border {
border: 1px solid rgb(240, 240, 240) !important;
}
}

0 comments on commit 04683c5

Please sign in to comment.