Skip to content

Commit fbfb07d

Browse files
committed
card previews for mobile
1 parent c2bd45b commit fbfb07d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/components/Bookmark/BookmarkCard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface BookmarkProp {
2727
*/
2828
async function addTagToBookmark(
2929
bookmark: Bookmark,
30-
tag: string
30+
tag: string,
3131
): Promise<TagAction> {
3232
let action: TagAction = {
3333
type: "add",
@@ -65,14 +65,14 @@ function OverlayCard({
6565
return (
6666
<Card className={style.bookmarkCard}>
6767
<div className="row g-0">
68-
<div className="col-6 col-sm-12">
68+
<div className="col-4 col-sm-12">
6969
<Card.Img
7070
className={`${style.cImg}`}
7171
src={url + bookmark.screenshotUrl}
7272
alt="screenshot preview"
7373
></Card.Img>
7474
</div>
75-
<div className="col-6 col-sm-12">
75+
<div className="col-8 col-sm-12">
7676
<PlainCard
7777
changeEditMode={changeEditMode}
7878
bookmark={bookmark}
@@ -166,7 +166,7 @@ export default function BookmarkCard({ bookmark }: Readonly<BookmarkProp>) {
166166

167167
const isChanges = (
168168
beforeEdit: RefObject<Bookmark>,
169-
edit: RefObject<Bookmark>
169+
edit: RefObject<Bookmark>,
170170
) => {
171171
return JSON.stringify(beforeEdit.current) != JSON.stringify(edit.current);
172172
};
@@ -207,7 +207,7 @@ export default function BookmarkCard({ bookmark }: Readonly<BookmarkProp>) {
207207
const tagId = bookmark.tags[idx].id;
208208
if (currentBookmark.current) {
209209
currentBookmark.current.tags = currentBookmark.current.tags.filter(
210-
(_t, i) => i !== idx
210+
(_t, i) => i !== idx,
211211
);
212212
}
213213
api.deleteTagById(bookmark.id, tagId);

0 commit comments

Comments
 (0)