Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions frontend/src/components/markdown/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/* -------------------------------------------------------------------------- */

.markdown-editor {
min-width: 0;
max-width: 100%;
overflow: visible;

border: 1px solid var(--border-strong);
Expand Down Expand Up @@ -35,6 +37,9 @@
/* -------------------------------------------------------------------------- */

.markdown-editor .milkdown {
min-width: 0;
max-width: 100%;

--crepe-color-background: var(--surface);
--crepe-color-on-background: var(--text);

Expand Down Expand Up @@ -78,6 +83,9 @@
/* -------------------------------------------------------------------------- */

.markdown-editor .milkdown .ProseMirror {
min-width: 0;
max-width: 100%;

color: var(--text);

font-family: var(--font-sans);
Expand Down Expand Up @@ -204,7 +212,10 @@
/* Code blocks */

.markdown-editor .milkdown .ProseMirror pre {
box-sizing: border-box;
max-width: 100%;
overflow-x: auto;
overscroll-behavior-inline: contain;

margin: 1.25rem 0;
border: 1px solid var(--border);
Expand All @@ -221,6 +232,16 @@

overflow-wrap: normal;
white-space: pre;

-webkit-overflow-scrolling: touch;
}


/* Keep embedded content inside the document column on narrow screens. */

.markdown-editor .milkdown .ProseMirror img {
max-width: 100%;
height: auto;
}

.markdown-editor .milkdown .ProseMirror pre code {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/BotDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ onMounted(loadProject)
class="mt-12 grid gap-10 lg:grid-cols-[minmax(0,1fr)_300px]"
>
<!-- Left -->
<div>
<div class="min-w-0">
<!-- About -->
<section>
<h2
Expand Down