-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: Show social links as icon #5812
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
fix: Show social links as icon #5812
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/lwnslhcti |
This pull request introduces 1 alert when merging d1c65ec into 4c59354 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## development #5812 +/- ##
===============================================
- Coverage 23.43% 23.41% -0.03%
===============================================
Files 512 511 -1
Lines 5466 5471 +5
Branches 65 65
===============================================
Hits 1281 1281
- Misses 4168 4173 +5
Partials 17 17
Continue to review full report at Codecov.
|
I think if UI-semantic does not have all the social link button then u should go with the one where all eh buttons are the same so that style is consistent for all buttons |
You can always set the button color using CSS. For links present in So, use this style And set color using classes or CSS, for eg, GitHub black, GitLab orange, Gitter pink For custom links, show them as they are shown already |
d1c65ec
to
31be621
Compare
This pull request introduces 1 alert when merging 31be621 into f17e24c - view on LGTM.com new alerts:
|
@iamareebjamal sir, please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app/utils/dictionary/social-media.ts
Outdated
export interface SocialMediaMap { [key: string]: SocialMedia } | ||
|
||
export const buttonColor: { [key: string]: string } = { | ||
'github' : 'black', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need of quotes in keys without space
</div> | ||
</div> | ||
</div> | ||
{{/if}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why looping 2 times, use if else in a single loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamareebjamal sir,
variable socialLinks contains both links socialMedia links and custom URLs.
i have made a flex-box for icon buttons. first of all I inserted event-site-URL. then i traverse all socialLinks and only select SocialMedia links to put inside flex-box as icon buttons. then outside of flex-box i traverse all socialLinks and only select Custom-URLs and list them. how can i do this in one loop.
we can store custom-URLs in a variable while first loop and use them outside felx-box. this will be complex in hbs. thats why i use 2 loops.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I understand now
@mariobehling Shouldn't we show the custom links like we previously did? Like if there are 4 custom links: They all will show |
@sachinchauhan2889 Please just show social media links in this PR and continue showing custom links in previous form. We'll discuss the other issue in next PR |
@iamareebjamal sir, customs links are already in previous form. you can check |
OK, I understand it completely now. |
Very nice! Thank you. |
Fixes #5785
Fixes #5824
screenshots
Checklist
development
branch.