Skip to content

Commit 4835c43

Browse files
Merge pull request #17081 from nextcloud/fix/auto-upload-header-alignment
fix(auto-upload): header title
2 parents 3a7b194 + 4ebf7c6 commit 4835c43

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

app/src/main/res/layout/synced_folders_item_header.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,19 @@
3232

3333
<TextView
3434
android:id="@+id/title"
35-
android:layout_width="wrap_content"
35+
android:layout_width="0dp"
3636
android:layout_height="wrap_content"
37-
android:ellipsize="middle"
38-
android:gravity="center|start"
37+
android:ellipsize="end"
38+
android:gravity="center_vertical|start"
3939
android:textColor="?android:textColorPrimary"
4040
android:textStyle="bold"
41-
tools:text="@string/placeholder_filename"
4241
android:maxLines="1"
4342
app:layout_constraintBottom_toTopOf="@+id/scanIndicatorText"
44-
app:layout_constraintStart_toEndOf="@+id/type" />
43+
app:layout_constraintStart_toEndOf="@+id/type"
44+
app:layout_constraintEnd_toStartOf="@+id/subFolderWarningButton"
45+
app:layout_constraintTop_toTopOf="parent"
46+
app:layout_constraintHorizontal_bias="0"
47+
tools:text="@string/placeholder_auto_upload_folder"/>
4548

4649
<TextView
4750
android:id="@+id/scanIndicatorText"

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@
527527
<string name="placeholder_random_link" translatable="false">https://nextcloud.localhost/nextcloud</string>
528528
<string name="placeholder_random_account" translatable="false">firstname@example.nextcloud.com</string>
529529
<string name="placeholder_date" translatable="false">12. Dec 2020 - 23:10:20</string>
530+
<string name="placeholder_auto_upload_folder" translatable="false">This is a very long folder name as you can see</string>
530531
<string name="placeholder_date_2" translatable="false">10. Dec 2020 - 10:10:10</string>
531532
<string name="placeholder_sso" translatable="false">Grant Nextcloud News access to your Nextcloud account incrediblyLong_username_with_123456789_number@Nextcloud_dummy.com?</string>
532533
<string name="placeholder_example_phone_number" translatable="false">+49 123 456 789 12</string>

0 commit comments

Comments
 (0)