From f36bab0a7ad72cd38d2d39030b3f72040b195653 Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Tue, 19 Jan 2021 15:33:35 +0300 Subject: [PATCH] Limit drawer layout with max width. --- CHANGES.md | 2 +- vector/src/main/res/layout/activity_home.xml | 2 +- vector/src/main/res/values-sw600dp/dimens.xml | 5 +++++ vector/src/main/res/values/dimens.xml | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 vector/src/main/res/values-sw600dp/dimens.xml diff --git a/CHANGES.md b/CHANGES.md index c9c9c5d035..6a1b5447e4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,7 +8,7 @@ Improvements 🙌: - Bugfix 🐛: - - + - Sidebar too large in horizontal orientation or tablets (#475) Translations 🗣: - diff --git a/vector/src/main/res/layout/activity_home.xml b/vector/src/main/res/layout/activity_home.xml index 50fc11500a..a41256fb84 100644 --- a/vector/src/main/res/layout/activity_home.xml +++ b/vector/src/main/res/layout/activity_home.xml @@ -25,7 +25,7 @@ diff --git a/vector/src/main/res/values-sw600dp/dimens.xml b/vector/src/main/res/values-sw600dp/dimens.xml new file mode 100644 index 0000000000..204d663d9c --- /dev/null +++ b/vector/src/main/res/values-sw600dp/dimens.xml @@ -0,0 +1,5 @@ + + + + 400dp + \ No newline at end of file diff --git a/vector/src/main/res/values/dimens.xml b/vector/src/main/res/values/dimens.xml index ccb7ae7726..06ca39950c 100644 --- a/vector/src/main/res/values/dimens.xml +++ b/vector/src/main/res/values/dimens.xml @@ -33,4 +33,7 @@ 280dp + + 320dp + \ No newline at end of file