Skip to content

Commit

Permalink
Centered the tooltip
Browse files Browse the repository at this point in the history
Signed-off-by: Ankush Bhardwaj <ankushbhardwaj408@gmail.com>
  • Loading branch information
ankushbhardwaj408 committed Oct 7, 2023
1 parent d28c227 commit 64fe283
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/sections/Community/Member-single/memberSingle.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,10 @@ export const MemberSingleWrapper = styled.div`
justify-content: left;
width: 90%;
padding-left: 0 !important;
//my code
.tooltip {
position: relative;
display: inline-block;
}
.tooltip-text {
visibility: hidden;
Expand All @@ -146,25 +145,35 @@ export const MemberSingleWrapper = styled.div`
color: #fff;
text-align: center;
border-radius: 6px;
padding: 2px;
padding: 2px;
position: absolute;
z-index: 1;
width: 80px;
left: 50%;
bottom: 105%; /* Position the tooltip above the text */
width: 110px;
bottom: 115%; /* Position the tooltip above the text */
//width: 110px;
margin-left: -40px; /* Center the tooltip */
opacity: 0;
transition: opacity 0.3s; /* Add a smooth fade-in effect */
}
.docker-extension {
left: 28%;
width: 110px;
}
.meshery-catalog {
left: 28%;
width: 110px;
}
.meshery-operator {
left: 28%;
width: 110px;
}
.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
//till here
li {
display: block;
color: black;
Expand Down

0 comments on commit 64fe283

Please sign in to comment.