Skip to content

Commit

Permalink
Update stale message margin and text alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiagr committed Jan 4, 2022
1 parent 4c2ff9b commit 0985613
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ class MySiteCardAndItemDecoration(
val position = parent.getChildAdapterPosition(view)
if (position < 0) return
when (parent.adapter?.getItemViewType(position)) {
MySiteCardAndItem.Type.INFO_ITEM.ordinal -> {
outRect.bottom = verticalMargin / 2
outRect.top = verticalMargin
outRect.left = horizontalMargin
outRect.right = horizontalMargin
}
MySiteCardAndItem.Type.LIST_ITEM.ordinal,
MySiteCardAndItem.Type.CATEGORY_HEADER_ITEM.ordinal -> {
outRect.left = horizontalMargin
Expand Down
2 changes: 1 addition & 1 deletion WordPress/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@
</style>

<style name="MySiteInfoItemTextView">
<item name="android:textAlignment">center</item>
<item name="android:textAlignment">viewStart</item>
<item name="android:singleLine">false</item>
<item name="android:textAppearance">?attr/textAppearanceCaption</item>
<item name="android:textColor">?attr/wpColorOnSurfaceMedium</item>
Expand Down

0 comments on commit 0985613

Please sign in to comment.