Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(soup): fix multiline code prev in soup (#220)

Seamus145491560557
diff --git a/js/app/bun.lock b/js/app/bun.lock
index 43f31fcc73..201cb849d1 100644
--- a/js/app/bun.lock
+++ b/js/app/bun.lock
@@ -1,6 +1,5 @@
{
"lockfileVersion": 1,
- "configVersion": 0,
"workspaces": {
"": {
"name": "@coparse/monorepo",
diff --git a/js/app/packages/core/component/LexicalMarkdown/component/core/StaticMarkdown.tsx b/js/app/packages/core/component/LexicalMarkdown/component/core/StaticMarkdown.tsx
index 366f5e978e..b1725ce9e7 100644
--- a/js/app/packages/core/component/LexicalMarkdown/component/core/StaticMarkdown.tsx
+++ b/js/app/packages/core/component/LexicalMarkdown/component/core/StaticMarkdown.tsx
@@ -715,12 +715,10 @@ export function StaticMarkdown(props: {
}
setEditorStateFromMarkdown(editor, content(), props.target);
-
setEditorState(editor.getEditorState());
});
// TODO: Move citations to bulk query when built in backend
-
createEffect(() => {
const isGenerating = props.isGenerating?.() ?? false;
if (!isGenerating) {
diff --git a/js/app/packages/core/component/LexicalMarkdown/styles.css b/js/app/packages/core/component/LexicalMarkdown/styles.css
index b3f63ff1a6..e701ae92c6 100644
--- a/js/app/packages/core/component/LexicalMarkdown/styles.css
+++ b/js/app/packages/core/component/LexicalMarkdown/styles.css
@@ -214,7 +214,7 @@ ol.static-md.depth-6>li:not(.list-none)::before {
padding-top: 3.5rem;
}
-.md-static-code-container .md-code-box {
+.md-static-code-container .md-code-box:not(.no-accessory) {
margin-top: -1.5rem;
}
@@ -499,7 +499,7 @@ ref: https://bugzilla.mozilla.org/show_bug.cgi?id=1904159
outline: 2px solid rgb(60, 132, 244);
}
-.md-quote + .md-quote {
+.md-quote+.md-quote {
margin-top: -1rem;
}
diff --git a/js/app/packages/core/component/LexicalMarkdown/theme.ts b/js/app/packages/core/component/LexicalMarkdown/theme.ts
index c87cabb8f5..4f9cec6205 100644
--- a/js/app/packages/core/component/LexicalMarkdown/theme.ts
+++ b/js/app/packages/core/component/LexicalMarkdown/theme.ts
@@ -201,9 +201,10 @@ export const embeddedCodeBlock = createTheme({
});
export const unifiedListMarkdownTheme = createTheme({
- code: 'font-mono my-2 overflow-hidden px-2 py-1 rounded bg-edge/20 inline-block',
+ code: 'font-mono overflow-hidden px-1.5 py-0.5 rounded bg-edge/20 inline-block',
static: {
- 'code-container': 'font-mono md-code-box no-accessory overflow-hidden',
+ 'code-container':
+ 'font-mono md-code-box no-accessory overflow-hidden flex items-center',
},
paragraph: `${theme.paragraph} inline`,
heading: {
diff --git a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
index f10de73ebc..56ad9579d4 100644
--- a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
+++ b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
@@ -291,11 +291,11 @@ export function EntityWithEverything(
<Show when={!props.showUnrollNotifications && lastMessageContent()}>
{(lastMessageContent) => (
- <div class="truncate shrink grow opacity-60">
+ <div class="truncate shrink grow opacity-60 flex items-center">
<StaticMarkdown
markdown={lastMessageContent()}
theme={unifiedListMarkdownTheme}
- singleLine={false}
+ singleLine={true}
/>
</div>
)}
@@ -496,7 +496,7 @@ export function EntityWithEverything(
<div class="relative row-2 grid gap-2 col-2 col-end-4 pb-2">
<For each={contentHighlights()}>
{(highlight) => (
- <div class="text-sm text-ink-muted truncate">
+ <div class="text-sm text-ink-muted truncate flex items-center">
<StaticMarkdown
markdown={highlight}
theme={unifiedListMarkdownTheme}
@@ -578,7 +578,7 @@ export function EntityWithEverything(
return (
<div
- class="relative flex gap-1 items-center min-w-0 h-7"
+ class="relative flex gap-1 items-center min-w-0 h-8"
classList={{
'hover:bg-hover/20 hover:opacity-70':
!!props.onClickNotification,
@@ -607,16 +607,13 @@ export function EntityWithEverything(
{ActionContent()}
</span>
</div>
-
{/*<ImportantBadge
active={
notification.viewedAt === null &&
notification.isImportantV0
}
/>*/}
- <div class="text-sm shrink truncate min-w-0 max-h-5 opacity-70 overflow-clip">
- <MessageContent />
- </div>
+ <MessageContent />
</div>
<div class="shrink-0 font-mono text-xs uppercase text-ink-extra-muted ml-2">
{formattedDate()}