machine-item: adds border to thumb

This commit is contained in:
Timo
2025-05-06 11:17:27 +02:00
committed by Johannes Kirschbauer
parent 9c09375805
commit 3898f2f449
4 changed files with 2589 additions and 2483 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -16,12 +16,11 @@
}
.machine-item__thumb {
@apply rounded-md bg-secondary-100;
@apply rounded-md bg-secondary-100 border border-secondary-200;
position: relative;
z-index: 20;
overflow: hidden;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
transition: transform 0.24s ease-in-out;
}

View File

@@ -0,0 +1,21 @@
// renderRoutes.ts
import { Route } from "@solidjs/router";
import type { JSXElement } from "solid-js";
export type AppRoute = {
path: string;
component?: () => JSXElement;
children?: AppRoute[];
};
export function renderRoutes(routes: AppRoute[], parentPath = ""): JSXElement[] {
return routes.map(({ path, component, children }) => {
const fullPath = `${parentPath}/${path}`.replace(/\/+/g, "/");
return (
<Route path={path} component={component} key={fullPath}>
{children && renderRoutes(children, fullPath)}
</Route>
);
});
}

View File

@@ -30,6 +30,9 @@ export default defineConfig({
"@": path.resolve(__dirname, "./"), // Adjust the path as needed
},
},
optimizeDeps: {
include: ["debug", "extend"],
},
plugins: [
/*
Uncomment the following line to enable solid-devtools.