fix callout in columns

This commit is contained in:
Philipinho
2026-02-24 15:22:11 +00:00
parent 038d87c08a
commit 6433cddb98
3 changed files with 16 additions and 20 deletions
@@ -23,6 +23,7 @@ export default function CalloutView(props: NodeViewProps) {
icon={getCalloutIcon(type, icon)} icon={getCalloutIcon(type, icon)}
p="xs" p="xs"
classNames={{ classNames={{
root: classes.root,
message: classes.message, message: classes.message,
icon: classes.icon, icon: classes.icon,
}} }}
@@ -1,9 +1,13 @@
.root {
overflow: visible;
}
.icon { .icon {
font-size: 24px; font-size: 24px;
line-height: 1; line-height: 1;
width: 20px; width: 20px;
height: 20px; height: 20px;
margin-inline-end: var(--mantine-spacing-md); margin-inline-end: var(--mantine-spacing-xs);
margin-top: 4px; margin-top: 4px;
cursor: pointer; cursor: pointer;
} }
@@ -11,18 +15,8 @@
.message { .message {
font-size: var(--mantine-font-size-md); font-size: var(--mantine-font-size-md);
color: var(--mantine-color-default-color); color: var(--mantine-color-default-color);
overflow: visible;
white-space: nowrap; text-overflow: unset;
word-break: break-word; word-break: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
/*
@mixin where-light {
color: var(--mantine-color-default-color);
}
@mixin where-dark {
color: var(--mantine-color-default-color);
}
*/
@@ -122,13 +122,14 @@
margin-bottom: 0; margin-bottom: 0;
} }
&.node-callout { }
div[style*="white-space: inherit;"] {
> :first-child { .react-renderer.node-callout div[style*="white-space: inherit;"] > :first-child {
margin: 0; margin-top: 0;
} }
}
} .react-renderer.node-callout + .react-renderer.node-callout {
margin-top: 0.75em;
} }
.selection { .selection {