Limit drawer layout with max width.

This commit is contained in:
Onuray Sahin 2021-01-19 15:33:35 +03:00
parent 68f422e498
commit f36bab0a7a
4 changed files with 10 additions and 2 deletions

View file

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

View file

@ -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" />

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 -->
<dimen name="button_max_width">280dp</dimen>
<!-- Navigation Drawer -->
<dimen name="navigation_drawer_max_width">320dp</dimen>
</resources>