Skip to content

Commit

Permalink
Fix z-index additional bugs (#2651)
Browse files Browse the repository at this point in the history
  • Loading branch information
farzaank committed May 16, 2024
1 parent 3c37819 commit 172cc26
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions helm-frontend/src/components/LeaderboardTables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default function LeaderboardTables({
key={`${activeGroup}-${idx}`}
className={`${
idx === activeSortColumn ? "bg-gray-100" : "bg-white"
} ${idx === 0 ? "left-0 z-10" : ""} ${
} ${idx === 0 ? "left-0 z-40" : ""} ${
headerValue.description
? "underline decoration-dashed decoration-gray-300 "
: ""
Expand Down Expand Up @@ -256,7 +256,7 @@ export default function LeaderboardTables({
: ""
} ${
cellIdx === 0
? "underline decoration-dashed decoration-gray-300 z-20"
? "underline decoration-dashed decoration-gray-300 z-10"
: "z-0"
}`}
>
Expand Down
2 changes: 1 addition & 1 deletion helm-frontend/src/components/NavDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function NavDropdown() {
}

return (
<div className="dropdown z-40">
<div className="dropdown z-50">
<div
tabIndex={0}
role="button"
Expand Down
14 changes: 11 additions & 3 deletions helm-frontend/src/components/RowValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ export default function RowValue({ value, title, hideIcon }: Props) {
if (href) {
return (
<Link to={href} inTable title={title}>
<div className="flex items-center">
<div className="flex items-center ">
{formatNumber(value.value)}
{!hideIcon && (
<ArrowTopRightOnSquareIcon className="w-3 h-3 ml-1 opacity-30" />
<ArrowTopRightOnSquareIcon
className="w-3 h-3 ml-1"
stroke="#cbcbcb"
fill="#cbcbcb"
/>
)}
</div>
</Link>
Expand All @@ -66,7 +70,11 @@ export default function RowValue({ value, title, hideIcon }: Props) {
<div className="flex items-center">
{formatNumber(value.value)}
{!hideIcon && (
<ArrowTopRightOnSquareIcon className="w-3 h-3 ml-1 opacity-30" />
<ArrowTopRightOnSquareIcon
className="w-3 h-3 ml-1"
stroke="#cbcbcb"
fill="#cbcbcb"
/>
)}
</div>
</Link>
Expand Down

0 comments on commit 172cc26

Please sign in to comment.