Skip to content

Commit

Permalink
Fix line wrap on Request to Join bottom sheet dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-signal committed Jul 1, 2022
1 parent 39288db commit 0318c4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/res/layout/group_join_bottom_sheet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
tools:theme="@style/Theme.Signal.RoundedBottomSheet.Light">

<ImageView
Expand Down Expand Up @@ -109,7 +109,7 @@
android:id="@+id/group_join_cancel_button"
style="@style/Signal.Widget.Button.Large.Tonal"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_height="0dp"
android:layout_marginStart="@dimen/dsl_settings_gutter"
android:layout_marginTop="26dp"
android:layout_marginBottom="32dp"
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@
<item name="backgroundTint">@color/signal_colorSurface1</item>
</style>

<style name="Widget.Signal.BottomSheet.MaterialButtonStyle" parent="Widget.Material3.Button.TextButton.Dialog.Flush">
<item name="android:lines">@null</item>
<item name="android:singleLine">false</item>
</style>

<style name="Theme.Signal.RoundedBottomSheet.Light">
<item name="bottomSheetStyle">@style/Widget.Signal.BottomSheet.Rounded</item>

Expand All @@ -581,6 +586,7 @@
<item name="android:navigationBarColor" tools:ignore="NewApi">@color/signal_colorSurface1</item>
<item name="android:windowLightNavigationBar" tools:ignore="NewApi">false</item>
<item name="android:statusBarColor" tools:ignore="NewApi">@color/transparent</item>
<item name="materialButtonStyle">@style/Widget.Signal.BottomSheet.MaterialButtonStyle</item>
</style>

<style name="Theme.Signal.RoundedBottomSheet.Stories">
Expand Down

0 comments on commit 0318c4f

Please sign in to comment.