adjust shadow of BottomSheet and Menu

This commit is contained in:
thislight 2024-10-31 21:50:36 +08:00
parent e7410c7296
commit 0267bffe87
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
4 changed files with 41 additions and 32 deletions

View file

@ -7,6 +7,7 @@ import {
type ParentComponent,
} from "solid-js";
import { ANIM_CURVE_STD } from "./theme";
import "./Menu.css";
type Props = {
open?: boolean;
@ -156,17 +157,11 @@ const Menu: ParentComponent<Props> = (props) => {
e.stopPropagation();
}
}}
class="Menu"
style={{
position: "fixed",
left: px(anchorPos().left),
top: px(anchorPos().top),
border: "none",
"border-radius": "2px",
padding: 0,
"max-width": "560px",
width: "max-content",
/* FIXME: the content may be overflow */
"box-shadow": "var(--tutu-shadow-e8)",
}}
>
<div