Skip to content

Commit

Permalink
fixed some issues with blockspace mobile pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mokelgit committed Sep 2, 2024
1 parent 51ced69 commit 323758f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
19 changes: 0 additions & 19 deletions components/layout/BlockspaceOverview/OverviewChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -553,25 +553,6 @@ export default function OverviewChart({
? pointY + distance
: pointY - tooltipHeight / 2;

if (isMobile) {
if (pointX - tooltipWidth / 2 < plotLeft) {
return {
x: plotLeft,
y: -250,
};
}
if (pointX + tooltipWidth / 2 > plotLeft + plotWidth) {
return {
x: plotLeft + plotWidth - tooltipWidth,
y: -250,
};
}
return {
x: pointX - tooltipWidth / 2,
y: -250,
};
}

return {
x: tooltipX,
y: tooltipY,
Expand Down
4 changes: 2 additions & 2 deletions components/layout/CategoryMetrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ export default function CategoryMetrics({
))}
</div>
</div>
<div className="w-full lg:w-[56%] relative bottom-2 mt-6 mb-[30px] h-[320px] lg:mt-0 lg:h-auto">
<div className="w-full lg:w-[56%] relative bottom-2 mt-1 mb-[30px] h-[320px] lg:mt-0 lg:h-auto">
{chartSeries && (
<Chart
chartType={
Expand Down Expand Up @@ -1236,7 +1236,7 @@ export default function CategoryMetrics({
</div>
<div>
{" "}
<div className="flex flex-wrap items-center w-[98%] mx-auto gap-y-2 invisible lg:visible ">
<div className="items-center w-[98%] mx-auto gap-y-2 hidden lg:flex lg:flex-row ">
<div className="font-bold text-sm pr-2 pl-2">
{formatSubcategories(selectedCategory)}:{" "}
</div>
Expand Down

0 comments on commit 323758f

Please sign in to comment.