Skip to content

Commit a2a9085

Browse files
committed
Hide the adaptive layout toggle if it is not available
1 parent 18bd64e commit a2a9085

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Files.App/UserControls/InnerNavigationToolbar.xaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,9 +1122,9 @@
11221122
<ColumnDefinition Width="Auto" />
11231123
</Grid.ColumnDefinitions>
11241124
<Grid.RowDefinitions>
1125-
<RowDefinition MinHeight="30" />
1126-
<RowDefinition MinHeight="30" />
1127-
<RowDefinition MinHeight="30" />
1125+
<RowDefinition Height="Auto" />
1126+
<RowDefinition Height="Auto" />
1127+
<RowDefinition Height="Auto" />
11281128
</Grid.RowDefinitions>
11291129

11301130
<!-- Show Hidden Files -->
@@ -1167,7 +1167,8 @@
11671167
Grid.Row="2"
11681168
Grid.Column="0"
11691169
VerticalAlignment="Center"
1170-
Text="{x:Bind Commands.LayoutAdaptive.Label}" />
1170+
Text="{x:Bind Commands.LayoutAdaptive.Label}"
1171+
Visibility="{x:Bind Commands.LayoutAdaptive.IsExecutable, Mode=OneWay}" />
11711172

11721173
<ToggleSwitch
11731174
Grid.Row="2"
@@ -1178,8 +1179,8 @@
11781179
IsOn="{x:Bind Commands.LayoutAdaptive.IsOn, Mode=TwoWay}"
11791180
Rotation="1"
11801181
Style="{StaticResource RightAlignedToggleSwitchStyle}"
1181-
ToolTipService.ToolTip="{x:Bind Commands.LayoutAdaptive.LabelWithHotKey, Mode=OneWay}" />
1182-
1182+
ToolTipService.ToolTip="{x:Bind Commands.LayoutAdaptive.LabelWithHotKey, Mode=OneWay}"
1183+
Visibility="{x:Bind Commands.LayoutAdaptive.IsExecutable, Mode=OneWay}" />
11831184
</Grid>
11841185

11851186
</StackPanel>

0 commit comments

Comments
 (0)