Skip to content

Commit

Permalink
fix: Increase clickable area for right panel icons
Browse files Browse the repository at this point in the history
  • Loading branch information
debjitbis08 committed Nov 17, 2024
1 parent 0f5ea85 commit ca709a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/RightPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function RightPanel() {

return (
<div class={`flex items-start ${expanded() ? "" : ""}`} style={{ width: `${expanded() ? `${width()}px` : 'auto'}` }}>
<div class="relative z-10 bg-page-background flex flex-col items-center h-sm:gap-4 gap-8 px-2 lg:px-4 pt-4 border-r border-r-main-border h-[calc(100dvh-4rem)] md:h-[calc(100vh-6.2rem)]">
<div class="relative z-10 bg-page-background flex flex-col items-center h-sm:gap-4 gap-4 pt-4 border-r border-r-main-border h-[calc(100dvh-4rem)] md:h-[calc(100vh-6.2rem)]">
<PanelButton
icon={<FiCpu />}
isActive={isActive('cpu')}
Expand Down Expand Up @@ -138,7 +138,7 @@ export function PanelButton (props) {
onClick={props.onClick}
disabled={props.disabled}
>
<span class="text-base md:text-xl lg:text-2xl">{props.icon}</span>
<span class="sm:text-xl md:text-xl lg:text-2xl py-2 px-2 lg:px-4">{props.icon}</span>
</Tooltip.Trigger>
<Tooltip.Portal>
<Tooltip.Content class="tooltip__content">
Expand Down

0 comments on commit ca709a3

Please sign in to comment.