Description improvements (#1846)
* Increase character limit for media descriptions to 1500 It was increased in Mastodon 3.0.0 which was released in October 2019. * Improve image description view Since media descriptions can be longer now, we need to adjust the UI. It is a common problem that description takes up the whole screen, it's hard for readers and also discourages people from adding descriptions. This commit uses bottom sheet to hide most of the description. Since we know how much screen space it will cover, we can use darker background which makes reading text easier. * Adjust description handle * Fix unable to dismiss image captionmain
parent
8b8958a9c2
commit
22b074f172
@ -0,0 +1,10 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<corners |
||||
android:topLeftRadius="6dp" |
||||
android:topRightRadius="6dp" /> |
||||
<stroke |
||||
android:color="?attr/colorBackgroundAccent" |
||||
android:width="1dp" /> |
||||
<solid android:color="#B3000000" /> |
||||
</shape> |
@ -0,0 +1,9 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<shape android:shape="rectangle" |
||||
xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<size |
||||
android:width="8dp" |
||||
android:height="1dp" /> |
||||
<solid android:color="?attr/colorBackgroundAccent" /> |
||||
<corners android:radius="1dp" /> |
||||
</shape> |
Loading…
Reference in new issue