mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
🎨 reworked structure of infocard + added arrow
This commit is contained in:
@@ -21,22 +21,18 @@ export const InfoCard = ({ content }: InfoCardProps) => {
|
||||
});
|
||||
|
||||
return (
|
||||
<HoverCard withinPortal position="top">
|
||||
<HoverCard position="top" withArrow withinPortal>
|
||||
<HoverCard.Target>
|
||||
<IconInfoCircle size="1.25rem" style={{ display: 'block', opacity: 0.5 }} />
|
||||
</HoverCard.Target>
|
||||
<HoverCard.Dropdown
|
||||
c='transparent'
|
||||
maw={400}
|
||||
p={0}
|
||||
style={{ border:"0", }}
|
||||
>
|
||||
<RichTextEditor editor={editor}>
|
||||
<RichTextEditor.Content
|
||||
bg={colorScheme === 'light' ? "gray.2" : "dark.8"}
|
||||
maw={400}
|
||||
px="10px"
|
||||
py="5px"
|
||||
/>
|
||||
>
|
||||
<RichTextEditor editor={editor} style={{ border:"0", }}>
|
||||
<RichTextEditor.Content bg="transparent"/>
|
||||
</RichTextEditor>
|
||||
</HoverCard.Dropdown>
|
||||
</HoverCard>
|
||||
|
||||
Reference in New Issue
Block a user