Skip to content

Commit

Permalink
fix: drive options mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
tomicvladan committed Dec 14, 2023
1 parent f984613 commit f318629
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@media (max-width: 440px) {
.DriveActionBarItem {
width: 80px;
font-size: 12px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { UpdateDriveProps } from '@interfaces/handlers';
import { useLocales } from '@context/LocalesContext';
import PodContext from '@context/PodContext';

import classes from './DriveActionBarMobile.module.scss';

export interface DriveActionBarMobileProps extends UpdateDriveProps {
refreshPods?: () => void;
}
Expand All @@ -38,7 +40,7 @@ const DriveActionBarItem = (
) => {
return (
<div
className="py-2 w-24 block md:hidden sm:w-full py-1 flex-shrink-0 md:py-4 shadow cursor-pointer hover:bg-color-shade-dark-4-day dark:hover:bg-color-shade-dark-2-night"
className={`py-2 w-24 block md:hidden sm:w-full py-1 flex-shrink-0 md:py-4 shadow cursor-pointer hover:bg-color-shade-dark-4-day dark:hover:bg-color-shade-dark-2-night ${classes.DriveActionBarItem}`}
onClick={disabled ? undefined : onClick}
>
<a className="flex flex-col justify-center items-center">
Expand Down

0 comments on commit f318629

Please sign in to comment.