Skip to content

Commit 9e802a8

Browse files
leemthompoclaude
andauthored
Wrap long get-started commands instead of clipping them (#4623)
The command chip had a fixed height and no wrapping, so a long command lost its end on hub pages. The Elasticsearch hub shows its start-local command without the final `| sh`. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 539abfb commit 9e802a8

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

  • src/Elastic.Documentation.Site/Assets/markdown

‎src/Elastic.Documentation.Site/Assets/markdown/hub.css‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,20 +228,21 @@
228228
--code-size: var(--text-xs);
229229
--code-leading: 1.2;
230230
}
231-
/* A long command scrolls sideways inside its box instead of being clipped. */
231+
/* A long command wraps inside its box, so the whole command stays visible.
232+
The box keeps the option button's height for a one-line command. */
232233
.hub-get-started .hub-get-started-install pre {
233234
display: flex;
234235
align-items: center;
235236
box-sizing: border-box;
236-
height: 37px;
237+
min-height: 37px;
237238
margin: 0;
238-
padding: 0 36px 0 12px;
239-
overflow-x: auto;
239+
padding: 8px 36px 8px 12px;
240240
background: var(--color-ink-navy);
241241
border-radius: 8px;
242242
}
243243
.hub-get-started .hub-get-started-install code {
244-
white-space: nowrap;
244+
white-space: pre-wrap;
245+
overflow-wrap: anywhere;
245246
}
246247

247248
.hub-get-started .hub-get-started-track {

0 commit comments

Comments
 (0)