|
|
|
@ -12,7 +12,7 @@ import Kubernetes from "widgets/kubernetes/component";
|
|
|
|
|
import { SettingsContext } from "utils/contexts/settings";
|
|
|
|
|
import ResolvedIcon from "components/resolvedicon";
|
|
|
|
|
|
|
|
|
|
export default function Item({ service, group }) {
|
|
|
|
|
export default function Item({ service, group, useEqualHeights }) {
|
|
|
|
|
const hasLink = service.href && service.href !== "#";
|
|
|
|
|
const { settings } = useContext(SettingsContext);
|
|
|
|
|
const showStats = service.showStats === false ? false : settings.showStats;
|
|
|
|
@ -37,7 +37,8 @@ export default function Item({ service, group }) {
|
|
|
|
|
className={classNames(
|
|
|
|
|
settings.cardBlur !== undefined && `backdrop-blur${settings.cardBlur.length ? "-" : ""}${settings.cardBlur}`,
|
|
|
|
|
hasLink && "cursor-pointer",
|
|
|
|
|
"transition-all h-15 mb-2 p-1 rounded-md font-medium text-theme-700 dark:text-theme-200 dark:hover:text-theme-300 shadow-md shadow-theme-900/10 dark:shadow-theme-900/20 bg-theme-100/20 hover:bg-theme-300/20 dark:bg-white/5 dark:hover:bg-white/10 relative overflow-clip service-card",
|
|
|
|
|
useEqualHeights && "h-[calc(100%-0.5rem)]",
|
|
|
|
|
"transition-all mb-2 p-1 rounded-md font-medium text-theme-700 dark:text-theme-200 dark:hover:text-theme-300 shadow-md shadow-theme-900/10 dark:shadow-theme-900/20 bg-theme-100/20 hover:bg-theme-300/20 dark:bg-white/5 dark:hover:bg-white/10 relative overflow-clip service-card",
|
|
|
|
|
)}
|
|
|
|
|
>
|
|
|
|
|
<div className="flex select-none z-0 service-title">
|
|
|
|
|