Skip to content

Commit

Permalink
fix draft/schedule view for large display sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Oct 13, 2023
1 parent 4d49b10 commit 6a65edd
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions mastodon/src/main/res/layout/fragment_compose.xml
Original file line number Diff line number Diff line change
Expand Up @@ -390,37 +390,41 @@
android:gravity="center_vertical"
android:visibility="gone"
android:minHeight="48dp"
android:paddingVertical="4dp">
android:paddingVertical="6dp">

<TextView
android:id="@+id/schedule_draft_text"
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"
android:text="@string/sk_compose_draft" />

<Button
android:id="@+id/scheduled_time_btn"
style="@style/Widget.Mastodon.M3.Button.Outlined.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:gravity="center"
android:textSize="14sp"
android:textColor="?android:textColorSecondary"
android:fontFamily="sans-serif"
android:drawableStart="@drawable/ic_fluent_clock_20_regular"
android:drawableTint="?android:textColorSecondary"
tools:text="Dec 12, 2021, 12:42 PM"/>

<Space
<org.joinmastodon.android.ui.views.AutoOrientationLinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1" />
android:layout_weight="1"
android:layout_height="wrap_content">

<TextView
android:id="@+id/schedule_draft_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="6dp"
android:layout_marginVertical="2dp"
android:ellipsize="end"
android:drawableStart="@drawable/ic_fluent_drafts_20_regular"
android:drawableTint="?android:textColorSecondary"
android:drawablePadding="16dp"
android:text="@string/sk_compose_draft" />

<Button
android:id="@+id/scheduled_time_btn"
style="@style/Widget.Mastodon.M3.Button.Outlined.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginVertical="2dp"
android:gravity="center"
android:textSize="14sp"
android:textColor="?android:textColorSecondary"
android:fontFamily="sans-serif"
android:drawableStart="@drawable/ic_fluent_clock_20_regular"
android:drawableTint="?android:textColorSecondary"
tools:text="Dec 12, 2021, 12:42 PM"/>

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

<ImageButton
android:id="@+id/schedule_draft_dismiss"
Expand Down

0 comments on commit 6a65edd

Please sign in to comment.