Skip to content

Commit 51a7746

Browse files
committed
Simplify docstring code blocks: smaller font, no header, no line numbers
1 parent 2b2d38f commit 51a7746

1 file changed

Lines changed: 6 additions & 42 deletions

File tree

src/lib/components/dialogs/shared/DocumentationSection.svelte

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -220,60 +220,24 @@
220220
overflow: hidden;
221221
}
222222
223+
/* Hide header in docs code blocks - no copy button or label needed */
223224
.docs-content :global(.code-block-header) {
224-
display: flex;
225-
align-items: center;
226-
justify-content: space-between;
227-
padding: var(--space-xs) var(--space-sm);
228-
background: var(--surface-raised);
229-
border-bottom: 1px solid var(--border);
230-
}
231-
232-
.docs-content :global(.code-label) {
233-
font-size: 9px;
234-
font-weight: 600;
235-
color: var(--text-muted);
236-
text-transform: uppercase;
237-
letter-spacing: 0.5px;
238-
}
239-
240-
.docs-content :global(.copy-btn) {
241-
display: flex;
242-
align-items: center;
243-
justify-content: center;
244-
padding: 2px;
245-
background: none;
246-
border: none;
247-
color: var(--text-muted);
248-
cursor: pointer;
249-
border-radius: var(--radius-sm);
250-
transition: all var(--transition-fast);
251-
}
252-
253-
.docs-content :global(.copy-btn:hover) {
254-
color: var(--text);
255-
background: var(--surface-hover);
225+
display: none;
256226
}
257227
258228
.docs-content :global(.cm-container) {
259-
font-size: 10px;
260-
line-height: 1.5;
229+
font-size: 9px;
230+
line-height: 1.4;
261231
}
262232
263233
/* CodeMirror overrides for compact display */
264234
.docs-content :global(.cm-editor) {
265235
background: var(--surface);
266236
}
267237
238+
/* Hide line numbers in docs code blocks */
268239
.docs-content :global(.cm-gutters) {
269-
background: var(--surface);
270-
border-right: 1px solid var(--border);
271-
}
272-
273-
.docs-content :global(.cm-lineNumbers .cm-gutterElement) {
274-
padding: 0 4px 0 8px;
275-
min-width: 24px;
276-
font-size: 9px;
240+
display: none;
277241
}
278242
279243
/* Fallback pre/code styles (before CodeMirror processes) */

0 commit comments

Comments
 (0)