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:
commit
304b489470
|
@ -8,7 +8,7 @@ Improvements 🙌:
|
|||
-
|
||||
|
||||
Bugfix 🐛:
|
||||
-
|
||||
- Sidebar too large in horizontal orientation or tablets (#475)
|
||||
|
||||
Translations 🗣:
|
||||
-
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/homeDrawerFragmentContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="@dimen/navigation_drawer_max_width"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start" />
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Navigation Drawer -->
|
||||
<dimen name="navigation_drawer_max_width">400dp</dimen>
|
||||
</resources>
|
|
@ -33,4 +33,7 @@
|
|||
<!-- Max width for some buttons -->
|
||||
<dimen name="button_max_width">280dp</dimen>
|
||||
|
||||
<!-- Navigation Drawer -->
|
||||
<dimen name="navigation_drawer_max_width">320dp</dimen>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue