Merge pull request #2699 from vector-im/feature/ons/fix_navigation_drawer_max_width

Drawer layout width limit for landscape and tablets
This commit is contained in:
Benoit Marty 2021-01-20 15:37:46 +01:00 committed by GitHub
commit 304b489470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -8,7 +8,7 @@ Improvements 🙌:
- -
Bugfix 🐛: Bugfix 🐛:
- - Sidebar too large in horizontal orientation or tablets (#475)
Translations 🗣: Translations 🗣:
- -

View File

@ -25,7 +25,7 @@
<androidx.fragment.app.FragmentContainerView <androidx.fragment.app.FragmentContainerView
android:id="@+id/homeDrawerFragmentContainer" android:id="@+id/homeDrawerFragmentContainer"
android:layout_width="match_parent" android:layout_width="@dimen/navigation_drawer_max_width"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="start" /> android:layout_gravity="start" />

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Navigation Drawer -->
<dimen name="navigation_drawer_max_width">400dp</dimen>
</resources>

View File

@ -33,4 +33,7 @@
<!-- Max width for some buttons --> <!-- Max width for some buttons -->
<dimen name="button_max_width">280dp</dimen> <dimen name="button_max_width">280dp</dimen>
<!-- Navigation Drawer -->
<dimen name="navigation_drawer_max_width">320dp</dimen>
</resources> </resources>