Align option for Cards does not use the full layout width

Describe the bug

The text alignment options when applied to a card does not consider the entire layout’s width until the view is refreshed

To Reproduce

Steps to reproduce the behavior:

    1. Create a link to an object
    1. Switch the appearance (optional)
    1. Align the text to center or right
    1. Change the layout width of the page

Expected behavior

The text should re-flow to the position specified in the align option

System Information:

  • OS: Fedora 34 - Gnome Wayland
  • Device Manufacturer/Model: HP Elitebook
  • Anytype Version: 0.19.0

Additional context

This is how the block looks with center align before refreshing the card / view

As seen the image, the text is off-center

2 Likes

Yep, I can reproduce it.

Also, if you shrink down the layout width of the main page, it doesn’t align the text of the card view to centre… instead it pushes the text to the right side of the card view.

But Icon stays consistent and is always centre in card view.

1 Like

I can reproduce it as well and it makes the title disapear.

ALIGN CENTER

THEN REFRESH

ALLIGN LEFT

REFRESH

I’ve raised it as a separate bug report few days back:

https://community.anytype.io/t/-/2188

@lynxlove Thank you for your notice! It has been added to the bug tracker

@Kirill_Lem This issue has been fixed in the latest version of the desktop app (0.20.2) We can mark this as solved :grinning: :tada:

@lynxlove Okay :grinning: