Skip to content

Commit b356c1a

Browse files
hananasensnichme
andauthored
fix: collapse whitespace in client capabilities display (#1733)
### Summary As described in #1696, the capabilities under "Client Properties" has an odd indentation. its because the `jsonToText` separates each field in the json object by newlines and adds a 2 space indentation before them, however trims the whitespaces on the first row. Then we preserve the newlines by adding the pre-wrap to the pre-object. One solution could be to modify the jsonToText or separate each field in a div. But I figured this would be the smallest change. ### HOW can this pull request be tested? Visually 👁️ https://github.com/user-attachments/assets/9af0071f-5c22-4a10-a2db-df72086a4f9f --------- Co-authored-by: Magnus Landerblom <[email protected]>
1 parent 2ef7dfb commit b356c1a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

static/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,11 @@ footer .logo {
13801380
color: var(--color-text-muted);
13811381
}
13821382

1383+
#cp-capabilities {
1384+
white-space: pre-line;
1385+
margin: 0
1386+
}
1387+
13831388
#q-features span,
13841389
#e-features span {
13851390
cursor: help;

0 commit comments

Comments
 (0)