machine-item: adds border to thumb
This commit is contained in:
committed by
Johannes Kirschbauer
parent
51950329a3
commit
7b9d18f9eb
5045
pkgs/webview-ui/app/package-lock.json
generated
5045
pkgs/webview-ui/app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -16,12 +16,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.machine-item__thumb {
|
.machine-item__thumb {
|
||||||
@apply rounded-md bg-secondary-100;
|
@apply rounded-md bg-secondary-100 border border-secondary-200;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
|
||||||
|
|
||||||
transition: transform 0.24s ease-in-out;
|
transition: transform 0.24s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|||||||
21
pkgs/webview-ui/app/src/helper.ts
Normal file
21
pkgs/webview-ui/app/src/helper.ts
Normal 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>
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -30,6 +30,9 @@ export default defineConfig({
|
|||||||
"@": path.resolve(__dirname, "./"), // Adjust the path as needed
|
"@": path.resolve(__dirname, "./"), // Adjust the path as needed
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
optimizeDeps: {
|
||||||
|
include: ["debug", "extend"],
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
/*
|
/*
|
||||||
Uncomment the following line to enable solid-devtools.
|
Uncomment the following line to enable solid-devtools.
|
||||||
|
|||||||
Reference in New Issue
Block a user