Skip to content

Commit

Permalink
fix: unnecessary padding in my_account input layout
Browse files Browse the repository at this point in the history
  • Loading branch information
criticalAY committed Apr 3, 2024
1 parent 1c5a6b3 commit fa3c42d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions AnkiDroid/src/main/res/layout/my_account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
android:id="@+id/ankidroid_logo"
android:layout_width="200dp"
app:srcCompat="@drawable/ankidroid_logo"
android:layout_marginBottom="0dp"
android:layout_marginBottom="@dimen/input_layout_padding"
android:layout_gravity="center"
android:layout_height="200dp"
/>
android:layout_height="200dp" />

<!--<com.ichi2.ui.FixedTextView-->
<!--android:id="@+id/sign_in"-->
Expand All @@ -55,7 +54,7 @@
android:hint="@string/username"
app:endIconMode="clear_text"
app:errorEnabled="true"
android:layout_margin="@dimen/content_vertical_padding">
android:layout_marginHorizontal="@dimen/input_layout_padding">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/username"
Expand All @@ -75,7 +74,7 @@
android:hint="@string/password"
app:endIconMode="password_toggle"
app:errorEnabled="true"
android:layout_margin="@dimen/content_vertical_padding">
android:layout_marginHorizontal="@dimen/input_layout_padding">

<com.ichi2.ui.TextInputEditField
android:id="@+id/password"
Expand Down
1 change: 1 addition & 0 deletions AnkiDroid/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<dimen name="dialog_frame_margin">24dp</dimen>
<dimen name="title_frame_margin_bottom">16dp</dimen>
<dimen name="content_vertical_padding">8dp</dimen>
<dimen name="input_layout_padding">8dp</dimen>
<dimen name="icon_margin">16dp</dimen>

<!-- Material design typography -->
Expand Down

0 comments on commit fa3c42d

Please sign in to comment.