feat: remove cqmin system (#2407)

* feat: remove cqmin system

* fix: improve weather widget

---------

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
Manuel
2025-03-07 17:46:01 +00:00
committed by GitHub
parent 9881577f47
commit 37d471457a
26 changed files with 576 additions and 555 deletions

View File

@@ -74,12 +74,11 @@ export default function AppWidget({ options, isEditMode }: WidgetComponentProps<
h="100%"
w="100%"
direction="column"
p="7.5cqmin"
justify="center"
align="center"
>
{options.showTitle && (
<Text className="app-title" fw={700} ta="center" size="12.5cqmin">
<Text className="app-title" fw={700} ta="center">
{app.name}
</Text>
)}

View File

@@ -14,18 +14,18 @@ export const PingDot = ({ color, tooltip, ...props }: PingDotProps) => {
const { pingIconsEnabled } = useSettings();
return (
<Box bottom="2.5cqmin" right="2.5cqmin" pos="absolute">
<Box bottom={10} right={10} pos="absolute" display={"flex"}>
<Tooltip label={tooltip}>
{pingIconsEnabled ? (
<props.icon style={{ width: "10cqmin", height: "10cqmin" }} color={color} />
<props.icon style={{ width: 20, height: 20 }} strokeWidth={5} color={color} />
) : (
<Box
bg={color}
style={{
borderRadius: "100%",
}}
w="10cqmin"
h="10cqmin"
w={16}
h={16}
></Box>
)}
</Tooltip>