Closed olerichter00 closed 8 months ago
I have a sneaking suspicion that this change might break Folio, which has a different manner of of title behavior than eigen (mostly left aligned, up to the width of the left element). Can we achieve the same thing by remaining with flexbox? As soon as things become manually positioned we lose all manner of flexibility. Also, not sure i'm seeing the issue in the screenshots.
Thanks for the reviews 🙏
Before this fix, we had to set the width of the right element manually to ensure it is rendered correctly (Eigen code).
I just realized that what I'm trying to achieve with position: absolute
would also work by setting flex: 1
for both the left and right elements to ensure they have the same size, positioning the title exactly in the center of the screen (JSFiddle with CSS example)💡 I'll update this PR and get rid of the position: absolute
.
Sweet, that seems like a good fix!
Closing this PR in favor of https://github.com/artsy/palette-mobile/pull/203
Resolves https://www.notion.so/artsy/Manage-saves-font-looks-broken-on-the-offer-page-update-font-size-according-to-design-and-center-bu-b344bd5a99f941fea5df5d4048679090?pvs=4
Description
This pull request corrects the text alignment and centering in the screen header component.
📦 Published PR as canary version:
13.1.18--canary.200.1559.0
:sparkles: Test out this PR locally via: ```bash npm install @artsy/palette-mobile@13.1.18--canary.200.1559.0 # or yarn add @artsy/palette-mobile@13.1.18--canary.200.1559.0 ```