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: improve md breakpoint (#1252)

Peter Chinman2d0b3f66457c
diff --git a/js/app/packages/block-md/component/Notebook.tsx b/js/app/packages/block-md/component/Notebook.tsx
index 46a758f278..62b4dedfdf 100644
--- a/js/app/packages/block-md/component/Notebook.tsx
+++ b/js/app/packages/block-md/component/Notebook.tsx
@@ -47,7 +47,8 @@ enum CommentLayoutMode {
const BreaksPoints: Record<CommentLayoutMode, number> = {
lg: NoteTargetWidth + 2 * CommentTargetWidth + 3 * GapTargetWidth,
md: NoteTargetWidth + CommentTargetWidth + 3 * GapTargetWidth,
- sm: NoteTargetWidth - 2 * GapTargetWidth,
+ // hardcoded value below accounts for extra padding at sm size, keeps it from getting too squished
+ sm: NoteTargetWidth - 2 * GapTargetWidth + 260,
xs: 0,
none: 0,
};