mirror of
https://github.com/tuskyapp/Tusky
synced 2025-01-03 12:29:30 +01:00
prefer vertical format for cards with square images
This commit is contained in:
parent
4b897899ff
commit
a38f6ce93f
@ -1210,7 +1210,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
||||
int radius = context.getResources().getDimensionPixelSize(R.dimen.inner_card_radius);
|
||||
ShapeAppearanceModel.Builder cardImageShape = ShapeAppearanceModel.builder();
|
||||
|
||||
if (card.getWidth() > card.getHeight()) {
|
||||
if (card.getWidth() >= card.getHeight()) {
|
||||
cardLayout.setOrientation(LinearLayout.VERTICAL);
|
||||
cardImage.getLayoutParams().height = cardImage.getContext().getResources()
|
||||
.getDimensionPixelSize(R.dimen.card_image_vertical_height);
|
||||
|
Loading…
Reference in New Issue
Block a user