Skip to content

Commit

Permalink
Merge pull request #2819 from haseebzaki-07/new_branch
Browse files Browse the repository at this point in the history
Fixes the bookmark count box
  • Loading branch information
panwar8279 authored Aug 9, 2024
2 parents ba19cc9 + 6937285 commit 22bc218
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Component/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function Home(props) {

return (
<SkeletonTheme>
<div>

<div className="hero">
<div className="hero-text">
<div id="hero" className="hero-container">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Component/Navbar/NavbarCenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function NavbarCenter( ) {
<NavbarItem
description={
<div className="bookmarkTag">
<FontAwesomeIcon icon={faBookmark} /> Bookmark <span className="totBook">{totalBookmarks}</span>
<FontAwesomeIcon icon={faBookmark} /> Bookmark <span className="totBook ">{totalBookmarks}</span>
</div>
}

Expand Down
8 changes: 5 additions & 3 deletions frontend/src/style/BookMark.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,17 @@ transition: transform 0.6s ease-in-out, box-shadow 0.3s ease-in-out;
}
.bookmarkTag{
position: relative;

}
.bookmarkTag::after{
content: '';
position: absolute;
background-color: #000000;
width: 15%;
width: 20%;
height: 60%;
color: white;
border-radius: 4px;top:-10px;
right: -10px;

}
.totBook{
Expand All @@ -145,7 +147,7 @@ transition: transform 0.6s ease-in-out, box-shadow 0.3s ease-in-out;
z-index: 10;
color: white;
font-size: 13px;
right: -7px;
right: 0px;



Expand All @@ -158,7 +160,7 @@ transition: transform 0.6s ease-in-out, box-shadow 0.3s ease-in-out;
border-top: 6px solid rgb(8, 0, 0);
width: 0;
height: 0;
right: -8px;
right: -1px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
}
Expand Down

0 comments on commit 22bc218

Please sign in to comment.