Skip to content

Commit 744cfe3

Browse files
committed
switch to bottom absolute vs top
1 parent a1cb780 commit 744cfe3

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

frontend/components/Bookmark/BookmarkCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ function OverlayCard({
6464
return (
6565
<Card className={style.bookmarkCard}>
6666
<div className="row g-0">
67-
<div className="col-12">
67+
<div className="col-6 col-sm-12">
6868
<Card.Img
6969
className={`${style.cImg}`}
7070
src={url + bookmark.screenshotUrl}
7171
alt="screenshot preview"
7272
></Card.Img>
7373
</div>
74-
<div className="col-12">
74+
<div className="col-6 col-sm-12">
7575
<PlainCard
7676
changeEditMode={changeEditMode}
7777
bookmark={bookmark}

frontend/components/Bookmark/bookmarkCard.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@
142142
.cImg {
143143
border-top-left-radius: 0px;
144144
border-top-right-radius: 0px;
145+
146+
@media screen and (max-width: 700px) {
147+
margin-top: 20px;
148+
max-height: 150px;
149+
}
145150
}
146151

147152
.bookmarkCard {

frontend/styles/navbar.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
.searchBar {
8787
position: absolute;
88-
top: calc(100vh - 90px);
88+
bottom: -90vh;
8989
right: 10%;
9090
width: 80vw;
9191
z-index: 1;

0 commit comments

Comments
 (0)