-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Center align Workspace name on web and mobile web #4860
Comments
Triggered auto assignment to @kevinksullivan ( |
Proposaladd App/src/pages/workspace/WorkspaceSidebar.js Lines 140 to 149 in ae38f1b
|
Triggered auto assignment to @deetergp ( |
Proposal I feel there are two issues with the title of the Workspace name. One is the alignment, second is the fontSize. If you see the there's no difference in the title of the workspace and the menuItems. We could do the following:
|
Proposed Solution:Updates: I just fetched recent version of the app (1.0.88-2), compiled and tested. Now my previous solution (to add styles.alignSelfCenter to text component ) not working as expected in all platform. So now I suggest to add styles.textAlignCenter (instead of styles.alignSelfCenter) to Text component as other people also suggested before me. I will not mind if project awarded to them as they suggested before me. So now code looks like below after changes: /src/pages/workspace/WorkspaceSidebar.js file. <Tooltip text={policy.name}>
<Text
numberOfLines={1}
style={[
styles.displayName,
styles.textAlignCenter, // Add this style
]}
>
{policy.name}
</Text>
</Tooltip> Below are some screenshots I taken on latest version (1.0.88-2) by adding styles.textAlignCenter to Text component. It is working as expected for short and long workspace name. ScreenshotsWebMobile WebDesktopiOSAndroid 7.1.1If solution considered then kindly accept my Upwork proposal. Once proposal accepted, I will do final testing and submit pull request within 2 days. My Upwork profile: https://www.upwork.com/freelancers/~01c718889ed7821f82 Best Regards, |
Hi @gregorjoshua Thanks for the suggestion. But It is not good idea to set styles.alignItemsCenter at line 133 for Pressable componnet, because It is disturbing the Tooltip child component behaviour under it. i.e. when workspace name too long then text touches left and right side and it is not expected behaviour. See below screenshot that shows longs workspace name touched at left and right side when we set styles.alignItemsCenter to Pressable at line 133 , it is not expected behaviour. When workspace name too long it should truncate text and show ellipses at the end (i.e. three dots ...). I updated screenshot within my proposal, as you can see it shows expected behaviour when workspace name too long. Thanks |
Thanks @PrashantMangukiya! This is my first time commenting/contributing so I appreciate any feedback.
I think that the code that is in place already takes care of that (at least on Android). I tried to test on Web, but when I run Is your screenshot using the code that I suggested? |
Hi @gregorjoshua , Thanks for the message. Yes I set styles.alignItemsCenter to Pressable component at line 133 and taken screenshot for web version that shows workspace name disturbed. Now I just fetched recent version of the app (1.0.88-2), compiled and tested. Strange result, It looks like now changing styles.alignSelfCenter to styles.alignItemsCenter at line 133 Pressable component also working proper as per your suggestion. I think there was some glitch in previous version. Now both solution i.e. changing styles.alignSelfCenter to styles.alignItemsCenter at line 133 as you suggest, and Other is to add styles.textAlignCenter to text component working as expected in all platform. In fact now my previously suggested solution to add styles.alignSelfCenter to text component is not working as expected in all platform. I will prefer to add styles.textAlignCenter to text component instead of Pressable component. Thanks. |
So the workspace name was designed to be centered and I believe when it was
first implemented, it was centered. That means there was a regression some
where that’s causing this right? I think we should track down the
regression and have that contributor fix the issue we’re experiencing here.
Does anyone agree with that?
…On Sat, Aug 28, 2021 at 1:28 PM PrashantKumar Mangukiya < ***@***.***> wrote:
Is your screenshot using the code that I suggested?
Hi @gregorjoshua <https://github.com/gregorjoshua> , Thanks for the
message. Yes I set styles.alignItemsCenter to Pressable component at line
133 and taken screenshot for web version that shows workspace name
disturbed.
Now I just fetched recent version of the app (1.0.88-2), compiled and
tested. Strange result, It looks like now changing styles.alignSelfCenter
to styles.alignItemsCenter at line 133 Pressable component also working
proper as per your suggestion. I think there was some glitch in previous
version.
Now both solution i.e. changing styles.alignSelfCenter to
styles.alignItemsCenter at line 133 as you suggest, and Other is to add
styles.textAlignCenter to text component working as expected in all
platform.
In fact now my previously suggested solution to add styles.alignSelfCenter
to text component is not working as expected in all platform. I will prefer
to add styles.textAlignCenter to text component instead of Pressable
component.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4860 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARWH5UVM5QYGNUE2PP7G6DT7DB4XANCNFSM5C33Z7FA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@shawnborton I can confirm this is my regression from PR #4835.
|
Awesome, thank you! |
@akshayasalvi thanks for owning up to the regression. Does that mean we are good to close this one? |
I'm going with "yes" feel free to reopen if anyone disagrees. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
I would expect the Workspace name to be center aligned under the workspace avatar
Actual Result:
Workspace name is not center aligned under the workspace avatar
Workaround:
Ignore
Platform:
Where is this issue occurring?
Version Number: v1.0.88-0

Notes/Photos/Videos:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: