Commit f5159b8
### Motivation
Fix zauberzeug#5264, where the margin is inconsistent when `language=''`
### Implementation
* Changed the selector from `.nicegui-markdown .codehilite pre` to
`.nicegui-markdown pre` and updated the margin to `0.5rem 0.5rem` to
provide both horizontal and vertical margin to both codehilite and
non-codehilite code blocks.
* Removed unnecessary padding from `.nicegui-code .codehilite`.
### Visual difference
Before:
<img width="600" alt="image"
src="https://github.com/user-attachments/assets/48ce0232-bb6d-4d03-be48-a2a15e6d84c0"
/>
After:
<img width="600" alt="image"
src="https://github.com/user-attachments/assets/2e306fdb-12c5-49a0-8978-019f9e7fc059"
/>
### Progress
- [x] I chose a meaningful title that completes the sentence: "If
applied, this PR will..."
- [x] The implementation is complete.
- [x] Pytests have been added (or are not necessary).
- [x] Documentation has been added (or is not necessary).
---------
Co-authored-by: Falko Schindler <[email protected]>
1 parent 2a10f12 commit f5159b8
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
0 commit comments