Skip to content

Commit 22ad51c

Browse files
committed
minor fix
1 parent c09365c commit 22ad51c

2 files changed

Lines changed: 16 additions & 25 deletions

File tree

frontend/components/Bookmark/BookmarkCard.tsx

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ function OverlayCard({
8282
></PlainCard>
8383
</div>
8484
</div>
85+
<Card.Link
86+
style={{ marginLeft: "15px" }}
87+
target="_blank"
88+
href={bookmark.url}
89+
>
90+
{bookmark.url}
91+
</Card.Link>
8592
</Card>
8693
);
8794
}
@@ -235,30 +242,14 @@ export default function BookmarkCard({ bookmark }: Readonly<BookmarkProp>) {
235242

236243
function Content(): ReactNode {
237244
return bookmark.screenshotUrl ? (
238-
<div>
239-
<OverlayCard
240-
url={imgApi}
241-
changeEditMode={changeEditMode}
242-
bookmark={bookmark}
243-
currentBookmark={currentBookmark}
244-
inEditMode={inEditMode}
245-
edit={edit}
246-
/>
247-
<div
248-
style={{
249-
marginBottom: "2px",
250-
marginLeft: "15px",
251-
marginTop: "0px",
252-
textAlign: "justify",
253-
}}
254-
>
255-
{window.innerWidth < 768 ? (
256-
<a target="_blank" href={bookmark.url}>
257-
{bookmark.url}
258-
</a>
259-
) : null}
260-
</div>
261-
</div>
245+
<OverlayCard
246+
url={imgApi}
247+
changeEditMode={changeEditMode}
248+
bookmark={bookmark}
249+
currentBookmark={currentBookmark}
250+
inEditMode={inEditMode}
251+
edit={edit}
252+
/>
262253
) : (
263254
<div>
264255
<PlainCard

frontend/components/Bookmark/CardBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default function CardBody({
6262
/>
6363
</div>
6464
</div>
65-
) : bookmark.screenshotUrl == null ? (
65+
) : !bookmark.screenshotUrl ? (
6666
<Card.Link target="_blank" href={bookmark.url}>
6767
{bookmark.url}
6868
</Card.Link>

0 commit comments

Comments
 (0)