Skip to content

Commit 2b2bba8

Browse files
committed
Add warning
1 parent d1af519 commit 2b2bba8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/NexusMods.App.UI/Controls/MarkdownRenderer/MarkdownRendererView.axaml

+8
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@
7979
<Setter Property="FontFamily" Value="{StaticResource FontBodyRegular}" />
8080
<Setter Property="FontWeight" Value="Normal" />
8181
<Setter Property="FontSize" Value="14" />
82+
83+
<!--
84+
NOTE(erri120): LineHeight can't be used because every image gets put into a paragraph.
85+
Setting LineHeight would also force the image height to that value.
86+
The library we're using has many issues like this where the ideal solution would be to
87+
apply styles to a parent control from the child control or from the parent control by
88+
somehow checking if it has certain child controls.
89+
-->
8290
<!-- <Setter Property="LineHeight" Value="21" /> -->
8391
<Setter Property="Foreground" Value="{StaticResource NeutralModerateBrush}" />
8492
</Style>

0 commit comments

Comments
 (0)