Skip to content

Commit

Permalink
fix(compose): make 'This post will be saved as a draft' view work bet…
Browse files Browse the repository at this point in the history
…ter on smaller screens

cc: @sk22
  • Loading branch information
LucasGGamerM committed Sep 20, 2023
1 parent 18857e6 commit 77e19b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mastodon/src/main/res/layout/fragment_compose.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
</LinearLayout>
</ScrollView>

<org.joinmastodon.android.ui.views.AutoOrientationLinearLayout
<LinearLayout
android:id="@+id/schedule_draft_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand All @@ -397,6 +397,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:ellipsize="end"
android:drawableStart="@drawable/ic_fluent_drafts_20_regular"
android:drawableTint="?android:textColorSecondary"
android:drawablePadding="16dp"
Expand Down Expand Up @@ -431,7 +432,7 @@
android:tooltipText="@string/sk_compose_no_schedule"
android:contentDescription="@string/sk_compose_no_schedule" />

</org.joinmastodon.android.ui.views.AutoOrientationLinearLayout>
</LinearLayout>

<LinearLayout
android:id="@+id/bottom_bar"
Expand Down

1 comment on commit 77e19b4

@sk22
Copy link

@sk22 sk22 commented on 77e19b4 Oct 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change made it so the close button gets off-screened if the display size is too big.. i'll have to tweak this a bit

Please sign in to comment.