Skip to content

Commit

Permalink
fix(Note): Fix line wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
creewick committed Aug 22, 2024
1 parent 56c6613 commit ad7488d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Widgets/Notes/Views/Note.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
x:Class="Notes.Views.Note"
x:DataType="viewModels:NoteViewModel"
Margin="0">
<UserControl.Styles>
<Style Selector="Border:not(:pointerover) ScrollViewer">
<Setter Property="VerticalScrollBarVisibility" Value="Hidden" />
<Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
</Style>
<Style Selector="Border:pointerover ScrollViewer">
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
<Setter Property="HorizontalScrollBarVisibility" Value="Disabled" />
</Style>
</UserControl.Styles>
<Grid RowDefinitions="Auto, Auto, *, Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<controls:ClickThroughTextBox Grid.Row="0" CornerRadius="0" Height="44" VerticalContentAlignment="Center" Background="{DynamicResource SystemControlHighlightListAccentLowBrush}" Text="{Binding Title}" LostFocus="UpdateTitle" FontSize="16" FontWeight="SemiBold" />
<Path Grid.Row="1" Height="1" Margin="0,5,0,0" Stretch="Fill"
Expand Down

0 comments on commit ad7488d

Please sign in to comment.