Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 UI mobile - Fix overlapping elements #1443

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/components/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ const Tooltip = ({ children, text, showDelay, hideDelay, className = '' }) => {
{showTooltip && (
<span
className="
absolute bottom-full mb-1 whitespace-nowrap rounded-md
bg-tooltip-grey p-1.5 text-xs text-white transition-opacity
after:absolute after:top-full after:left-2/4 after:-translate-x-1/2
after:border-4 after:border-solid after:border-tooltip-grey after:border-l-transparent
after:border-r-transparent after:border-b-transparent after:content-['']
absolute left-full top-1/2 -translate-y-1/2 whitespace-nowrap rounded-md
bg-tooltip-grey p-1.5 text-xs text-white transition-opacity bg-opacity-100
after:absolute after:left-0 after:top-1/2 after:-translate-y-1/2 after:-translate-x-full
after:border-4 after:border-solid after:border-tooltip-grey after:border-t-transparent
after:border-b-transparent after:border-l-tooltip-grey after:content-[''] z-50
sm:left-auto sm:top-auto sm:bottom-full sm:ml-0 sm:mb-1
sm:-translate-y-0 sm:translate-x-0 sm:after:top-full sm:after:left-2/4 sm:after:-translate-x-1/2
sm:after:-translate-y-0 sm:after:border-l-transparent sm:after:border-r-transparent sm:after:border-b-tooltip-grey
"
>
{text}
Expand Down
7 changes: 7 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,13 @@ h6.top-category-header .number {
letter-spacing: initial;
}

@media (max-width: 640px) {
h6.top-category-header .number {
padding: 0;
position: static;
}
}

h6.top-category-header {
margin: 0 !important;
}
Expand Down
Loading