mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-18 11:29:22 +08:00
perf: 调整手机端搜索框等组件下拉样式
This commit is contained in:
@@ -91,7 +91,7 @@ export const Header = ({
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent
|
||||
align="end"
|
||||
className="purcarte-blur border-(--accent-a4) rounded-xl w-48">
|
||||
className="purcarte-blur border-(--accent-a4) rounded-xl w-[90vw] translate-x-[5vw] mt-[.5rem] max-w-screen-2xl">
|
||||
<div className="p-2">
|
||||
<Input
|
||||
type="search"
|
||||
@@ -118,7 +118,7 @@ export const Header = ({
|
||||
</DropdownMenuTrigger>
|
||||
<DropdownMenuContent
|
||||
align="end"
|
||||
className="purcarte-blur border-(--accent-a4) rounded-xl">
|
||||
className="purcarte-blur mt-[.5rem] border-(--accent-a4) rounded-xl">
|
||||
<DropdownMenuItem
|
||||
onClick={() =>
|
||||
setViewMode(viewMode === "grid" ? "table" : "grid")
|
||||
|
@@ -59,12 +59,6 @@ export const useTheme = () => {
|
||||
const defaultAppearance = useConfigItem("selectedDefaultAppearance");
|
||||
const defaultColor = useConfigItem("selectThemeColor");
|
||||
|
||||
console.log("Config in useTheme:", {
|
||||
enableLocalStorage,
|
||||
defaultAppearance,
|
||||
defaultColor,
|
||||
});
|
||||
|
||||
const [appearance, setAppearance] = useState<Appearance>(() => {
|
||||
if (enableLocalStorage) {
|
||||
const storedAppearance = localStorage.getItem("appearance");
|
||||
@@ -88,7 +82,6 @@ export const useTheme = () => {
|
||||
return cleanedColor as Colors;
|
||||
}
|
||||
}
|
||||
console.log("defaultColor in useState:", defaultColor);
|
||||
|
||||
return (defaultColor as Colors) || THEME_DEFAULTS.color;
|
||||
});
|
||||
|
Reference in New Issue
Block a user