mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Limit drawer layout with max width.
This commit is contained in:
parent
68f422e498
commit
f36bab0a7a
@ -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" />
|
||||
|
||||
|
5
vector/src/main/res/values-sw600dp/dimens.xml
Normal file
5
vector/src/main/res/values-sw600dp/dimens.xml
Normal file
@ -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
Block a user