Skip to content

Conversation

arctic-beep
Copy link
Contributor

@arctic-beep arctic-beep commented Aug 10, 2025

Description
Context: #2322 (review)

Here's a demonstration of how this can be achieved with minimal changes, w/o any media-queries, using existing styles defined in css/programs.css: #2323
This PR fixes #2315

Notes for Reviewers

  • The program.css stylesheet now correctly loads on all related pages. Previously, a strict equality check prevented it from being applied to pages with varying title like: programs/lfx/2025 page.
  • The overflow issues ( due to h3.project-title, a and li elements) on program pages for projects like GSoC and LFX have been fixed.
    Signed commits
  • Yes, I signed my commits.

Signed-off-by: arctic-beep <182507466+arctic-beep@users.noreply.github.com>
Signed-off-by: arctic-beep <182507466+arctic-beep@users.noreply.github.com>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @arctic-beep, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

I've implemented fixes to ensure the program.css stylesheet loads correctly across all related program pages, resolving an issue where strict title matching prevented its application on certain pages. Additionally, I've addressed responsive design problems by preventing text overflow within specific elements on these program pages, enhancing their visual presentation across different screen sizes.

Highlights

  • Stylesheet Inclusion Logic: I've updated the stylesheet inclusion logic in _includes/header.html to use downcase contains for 'lfx' and 'google summer of code' in page.title checks. This ensures that program.css is correctly applied to all relevant program pages, even those with more specific or varying titles like 'programs/lfx/2025'.
  • Responsive Overflow Issues: I've addressed responsive overflow issues on program pages by adding overflow-wrap: break-word; to a and li elements in css/program.css. This prevents long text within these elements from overflowing their containers.
  • Project Title Styling: I've also added a new CSS rule for project-title in css/program.css, setting its font-size to 1.7em. This change helps in resolving display issues related to h3.project-title elements on program pages.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

netlify bot commented Aug 10, 2025

Deploy Preview for mesheryio-preview failed.

Name Link
🔨 Latest commit c89b9ab
🔍 Latest deploy log https://app.netlify.com/projects/mesheryio-preview/deploys/68b55475735a360008c372e8

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request aims to fix the stylesheet inclusion for program pages and resolve some responsive layout issues. The changes to the stylesheet inclusion logic in _includes/header.html are a good step forward, but could be made more robust to handle future program pages. A critical issue was found in css/program.css where a CSS selector is incorrect, which will prevent the intended styles from being applied. I've provided suggestions to address these points.

Signed-off-by: arctic-beep <182507466+arctic-beep@users.noreply.github.com>
Copy link
Contributor

@Rajesh-Nagarajan-11 Rajesh-Nagarajan-11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arctic-beep I think your code have issues

Screencast.from.2025-08-10.20-26-35.webm

@Rajesh-Nagarajan-11
Copy link
Contributor

Rajesh-Nagarajan-11 commented Aug 10, 2025

@arctic-beep
Original :
image
Your PR changes :
image

Text size should not be changed and unwanted underlines !!!

@Rajesh-Nagarajan-11
Copy link
Contributor

Rajesh-Nagarajan-11 commented Aug 10, 2025

image

Text size in responsive ( Mobile view ) had inconsistency !!! and

IMG_20250811_080910.jpg

???

@vr-varad
Copy link
Member

Thank you for your contribution!
Let's discuss this during the website call today at 5:30 PM IST | 7 AM CT

Add it as an agenda item to the meeting minutes, if you would :)

Signed-off-by: arctic-beep <182507466+arctic-beep@users.noreply.github.com>
Copy link
Member

@vr-varad vr-varad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arctic-beep A pr should not fix 2 issues at a same time would be nice if you segregated both the issues in seperate prs

@Rajesh-Nagarajan-11
Copy link
Contributor

@vr-varad This PR is a review PR of my original PR #2322 . He reviewed my PR and created a new one over it for demo purposes, but it contains many bugs.

@arctic-beep
Copy link
Contributor Author

arctic-beep commented Aug 12, 2025

@arctic-beep A pr should not fix 2 issues at a same time would be nice if you segregated both the issues in seperate prs

@vr-varad the program.css which is a dedicated stylesheet with common properties for lfx, GSoC, and similar program pages was not being included on lfx page due to bad logic. The PR here fixes that logic and now program.css is included on all program pages including LFX pages.

It's important to note that the two changes(fixing stylesheet inclusion logic and responsive issues) was necessary to reflect the changes made, in deploy preview, and for a complete demonstration that is:

  • don't use hacky media queries, when it can be solved using simple styles.
  • don't alter styles for elements site wide
  • don't fix problems which don't even exist, in the first place.

@arctic-beep
Copy link
Contributor Author

@vr-varad This PR is a review PR of my original PR #2322 . He reviewed my PR and created a new one over it for demo purposes, but it contains many bugs.

@Rajesh-Nagarajan-11 please take a look again. Most of the comments you made have been already fixed. The styles you're pointing out ( underline, and a little different styles between current LFX page on meshery.io and in the deploy preview) is due to the fact that program.css styles were never applied to lfx pages due to the bad inclusion logic ( which is fixed in this PR). For reference take a look at current GSoC/2025 page on meshery.io ( which does include the aforementioned stylesheet) and you should see the similarity between lfx/2025 page in this pr's deploy preview and gsoc/2025 page on live site. If you want to make suggestions to alter the existing styles themselves in program.css note that this pr isn't concerned with that and you should open an new issue with suggestions to improve the styling, which would be a good effort.

This PR simply intends to fix the bad inclusion logic for the stylesheet so that it's uniformly applied to all programs pages ( which wasn't the case) and responsive line wrapping issue for a and li, which is causing the behaviour as pointed out by you in the linked issue.

Feel free to point out relevant issues you come across pertaining to changes made in this PR.

Signed-off-by: arctic-beep <182507466+arctic-beep@users.noreply.github.com>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rajesh-Nagarajan-11 @vr-varad the font size for heading h3 which is currently overflowing on lfx/2025 pages is already accounted for in this sheet on line number 45. If this stylesheet were applied to lfx pages, we wouldn't have that overflowing heading in the first place ( check GSoC/2025 pages for example).

The only fix needed to make GSoC and lfx page fully responsive in < 350px screen width is to ensure proper line wrapping for li and a which is included in this PR.
Take a look and feel free to share any suggestions/thoughts

@Rajesh-Nagarajan-11
Copy link
Contributor

@arctic-beep Preview Failed !!!!

Signed-off-by: arctic-beep <182507466+arctic-beep@users.noreply.github.com>
@arctic-beep
Copy link
Contributor Author

@arctic-beep Preview Failed !!!!

fixed ✅

@Rajesh-Nagarajan-11
Copy link
Contributor

Rajesh-Nagarajan-11 commented Aug 12, 2025

IMG_20250812_085325.jpg

@arctic-beep Still we have issues in Programs It was't while using media queries ; )

@arctic-beep
Copy link
Contributor Author

@Rajesh-Nagarajan-11 mention the screen width and height, if you would.
can't see the issue while checking on my end.

@arctic-beep
Copy link
Contributor Author

@Rajesh-Nagarajan-11 make sure to not post overly large images in the review thread here. It makes it super difficult for others to follow on the conversation.
make use of height and width property on img tag in your comments, please

@Rajesh-Nagarajan-11
Copy link
Contributor

@arctic-beep Sorry for larger images , i was screenshot in my mobile thats why it was longer

@Rajesh-Nagarajan-11
Copy link
Contributor

@arctic-beep 375X650

@arctic-beep
Copy link
Contributor Author

arctic-beep commented Aug 12, 2025

@Rajesh-Nagarajan-11 can't seem to find the issue you've in your screenshot above.


image

Please make sure you're visiting https://deploy-preview-2323--mesheryio-preview.netlify.app/programs/lfx/2025

@Rajesh-Nagarajan-11
Copy link
Contributor

@arctic-beep Touch the hamburger menu so that it will goes out of site

@arctic-beep
Copy link
Contributor Author

arctic-beep commented Aug 12, 2025

@arctic-beep Touch the hamburger menu so that it will goes out of site

I see @Rajesh-Nagarajan-11, it's an existing issue on the site. Here's the culprit: https://github.com/meshery/meshery.io/blob/master/css/program.css#L353

Again, something which would ideally be fixed in a separate pr as it's a existing style in the program sheet, but I'll go ahead and toss the change right now so that you can further test and share if there's any discrepancies

Signed-off-by: arctic-beep <182507466+arctic-beep@users.noreply.github.com>
@arctic-beep arctic-beep requested a review from vr-varad August 15, 2025 14:13
@vr-varad
Copy link
Member

Thank you for your contribution!
Let's discuss this during the website call today at 5:30 PM IST | 7 AM CT

Add it as an agenda item to the meeting minutes, if you would :)

arctic-beep and others added 2 commits August 31, 2025 21:36
Signed-off-by: arctic-beep <182507466+arctic-beep@users.noreply.github.com>
@vr-varad
Copy link
Member

vr-varad commented Sep 1, 2025

@arctic-beep Is this completed?
Did you get any feedback from the website meeting.

@Namanv0509
Copy link
Member

Thank you for your contribution!
Let's discuss this during the website call today at 5:30 PM IST | 7 AM CT

Add it as an agenda item to the meeting minutes, if you would :)

@leecalcote
Copy link
Member

@arctic-beep Touch the hamburger menu so that it will goes out of site

I see @Rajesh-Nagarajan-11, it's an existing issue on the site. Here's the culprit: https://github.com/meshery/meshery.io/blob/master/css/program.css#L353

Again, something which would ideally be fixed in a separate pr as it's a existing style in the program sheet, but I'll go ahead and toss the change right now so that you can further test and share if there's any discrepancies

Thank you for this, @arctic-beep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix mobile view text overflow issue on Meshery LFX Projects page
5 participants