Skip to content

Commit

Permalink
remove captain obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
taubenangriff committed Nov 28, 2022
1 parent ba4ab99 commit bb2056c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions ModManager/Views/Components/ModDescriptionDisplay.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,31 +151,23 @@
<!-- Description -->

<Grid Visibility="{Binding ShowDescription, Converter={StaticResource BoolToVis}, UpdateSourceTrigger=PropertyChanged}">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock Text="{Binding TextManager[HEADER_DESCRIPTION].Text}"
<!--<TextBlock Text="{Binding TextManager[HEADER_DESCRIPTION].Text}"
Margin="2,8,2,0"
Style="{StaticResource IMYA_TEXT}"
FontWeight="SemiBold" />

FontWeight="SemiBold" />-->
<TextBlock Style="{StaticResource IMYA_TEXT}"
MaxWidth="{Binding DescriptionTextWidth, UpdateSourceTrigger=PropertyChanged}"
TextWrapping="Wrap"
HorizontalAlignment="Left"
Text="{Binding Mod.Modinfo.Description.Text, UpdateSourceTrigger=PropertyChanged}"
Visibility="{Binding UseMarkdownDescription, Converter={StaticResource NegateBoolToVis}, UpdateSourceTrigger=PropertyChanged}"
Margin="2,8,2,8"
Grid.Row="1"/>

Margin="2,8,2,8" />
<FlowDocumentScrollViewer Visibility="{Binding UseMarkdownDescription, Converter={StaticResource BoolToVis}, UpdateSourceTrigger=PropertyChanged}"
IsEnabled="False"
Style="{StaticResource FlowDocumentScrollViewer}"
Document="{Binding MarkdownDescription, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource TextToFlowDocumentConverter}}"
Margin="-15,0,0,0"
x:Name="DescriptionFlowViewer"
Grid.Row="1">
x:Name="DescriptionFlowViewer">
</FlowDocumentScrollViewer>
</Grid>

Expand Down

0 comments on commit bb2056c

Please sign in to comment.