diff --git a/src/pages/home/header/layout.tsx b/src/pages/home/header/layout.tsx index a7e2e4c..0dfe644 100644 --- a/src/pages/home/header/layout.tsx +++ b/src/pages/home/header/layout.tsx @@ -12,6 +12,8 @@ import { Switch, Match, For } from "solid-js" import { Dynamic } from "solid-js/web" import { useT } from "~/hooks" import { getMainColor, LayoutType, layout, setLayout } from "~/store" +// 将视图布局按钮悬浮在视口10px +import "./menu.css" const layouts = { list: FaSolidListUl, @@ -22,7 +24,7 @@ const layouts = { export const Layout = () => { const t = useT() return ( - <> + ) } diff --git a/src/pages/home/header/menu.css b/src/pages/home/header/menu.css new file mode 100644 index 0000000..059d899 --- /dev/null +++ b/src/pages/home/header/menu.css @@ -0,0 +1,5 @@ +.menu { + position: fixed; + right: 10px; + top: 150px; +}