Skip to content

fix(ui): responsivness of kmesh website#275

Merged
kmesh-bot merged 1 commit intokmesh-net:mainfrom
yashisrani:fix/responsive
Feb 25, 2026
Merged

fix(ui): responsivness of kmesh website#275
kmesh-bot merged 1 commit intokmesh-net:mainfrom
yashisrani:fix/responsive

Conversation

@yashisrani
Copy link
Contributor

Before:
Screenshot 2026-02-24 at 11 11 19 PM

After:
Screenshot 2026-02-24 at 11 11 37 PM

Before:
Screenshot 2026-02-24 at 11 11 56 PM

After:
Screenshot 2026-02-24 at 11 12 11 PM

Signed-off-by: Yash Israni <118755067+yashisrani@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 24, 2026 17:43
@netlify
Copy link

netlify bot commented Feb 24, 2026

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit f7bd076
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/699de33f3e542d00083f1b31
😎 Deploy Preview https://deploy-preview-275--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist
Copy link

Summary of Changes

Hello @yashisrani, 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!

This pull request significantly improves the responsiveness of the kmesh website's user interface. It introduces targeted CSS adjustments across several key components, including the 'About' section, content sliders, and the main navigation bar. The changes ensure that critical elements adapt gracefully to different screen sizes, providing a more consistent and user-friendly experience on both desktop and mobile devices by adjusting font sizes, element visibility, and layout.

Highlights

  • About Section Responsiveness: Implemented new media queries in src/components/About/styles.scss to enhance the responsiveness of the 'About' section's text elements (description, name, job title) across various screen sizes, ensuring optimal display on smaller devices.
  • Slider Component Enhancements: Corrected a minor typo (align-items: centers to align-items: center) and removed redundant position: position declarations in src/components/slider/index.scss. Additionally, new media queries were introduced to optimize font sizing for slider titles (main-title, sub-title) on different devices.
  • Navbar and Mobile Sidebar Adaptations: Introduced comprehensive media queries in src/css/custom.css to refine the display of the navigation bar and mobile sidebar. This includes logic to show only the logo, toggle, and search on specific tablet-like widths, and to arrange mobile sidebar social icons in a row.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/components/About/styles.scss
    • Added media queries for max-width: 435px to adjust description, name, and jobTitle styles.
    • Added media queries for max-width: 1024px to adjust description, name, and jobTitle font sizes.
    • Added media queries for min-width: 1300px and max-width: 1515px to adjust description, name, and jobTitle font sizes.
    • Added media queries for max-width: 1300px to adjust description, name, and jobTitle font sizes.
  • src/components/slider/index.scss
    • Corrected align-items: centers to align-items: center in the .center class.
    • Removed redundant position: position declarations for .slick-prev and .slick-next.
    • Added media queries for max-width: 1230px and min-width: 993px to adjust main-title and sub-title font sizes.
    • Added media queries for max-width: 992px to adjust main-title and sub-title font sizes.
    • Added media queries for max-width: 768px and min-width: 565px to adjust main-title and sub-title font sizes and add auto margins.
    • Added media queries for max-width: 564px to adjust main-title and sub-title font sizes.
  • src/css/custom.css
    • Added media query for min-width: 997px and max-width: 1245px to hide most navbar links, keeping only logo, toggle, and search visible, and adjusting their layout.
    • Added media query for max-width: 996px to display mobile sidebar social icons in a row with spacing.
Activity
  • No specific activity (comments, reviews, or progress updates) was provided in the context for this pull request.
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

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

@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 introduces several CSS changes to improve the responsiveness of the website, particularly for the navigation bar and content sections on different screen sizes. The changes are generally moving in the right direction. However, I've identified a few areas in the SCSS and CSS files where the implementation could be improved for better maintainability and to fix a bug related to media query ordering that breaks styling on smaller viewports. My comments focus on simplifying redundant media queries, fixing the style override bug, and avoiding the use of !important where possible.

Comment on lines +107 to +133
@media (min-width: 1300px) and (max-width: 1515px) {
.row {
.description {
font-size: 1.1rem;
}
.name {
font-size: 1.8em;
}
.jobTitle {
font-size: 0.9rem;
}
}
}

@media (max-width: 1300px) {
.row {
.description {
font-size: 1.1rem;
}
.name {
font-size: 1.8em;
}
.jobTitle {
font-size: 0.9rem;
}
}
}

Choose a reason for hiding this comment

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

high

The media queries added here have issues with redundancy and ordering, which causes incorrect styling. The @media (max-width: 1300px) block is redundant as it contains the same styles as the (min-width: 1300px) and (max-width: 1515px) block. More critically, because it appears last in the source order, it overrides the more specific styles for max-width: 1024px and max-width: 435px, breaking the responsive design for smaller screens. Please refactor these queries to have clear, non-overlapping ranges or ensure they are ordered correctly (e.g., from largest max-width to smallest).

Comment on lines +89 to +109
@media (max-width: 1230px) and (min-width: 993px){
.slick-slider .slick-item {
.main-title {
font-size: 2rem;
}
.sub-title {
font-size: 1.3rem;
}
}
}

@media (max-width: 992px) {
.slick-slider .slick-item {
.main-title {
font-size: 2rem;
}
.sub-title {
font-size: 1.3rem;
}
}
}

Choose a reason for hiding this comment

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

medium

These two media queries for (max-width: 1230px) and (min-width: 993px) and (max-width: 992px) have identical styles. Since their ranges are contiguous, they can be combined into a single, simpler media query to improve readability and maintainability.

Suggested change
@media (max-width: 1230px) and (min-width: 993px){
.slick-slider .slick-item {
.main-title {
font-size: 2rem;
}
.sub-title {
font-size: 1.3rem;
}
}
}
@media (max-width: 992px) {
.slick-slider .slick-item {
.main-title {
font-size: 2rem;
}
.sub-title {
font-size: 1.3rem;
}
}
}
@media (max-width: 1230px) {
.slick-slider .slick-item {
.main-title {
font-size: 2rem;
}
.sub-title {
font-size: 1.3rem;
}
}
}

Comment on lines +111 to +133
@media (max-width: 768px) and (min-width: 565px) {
.slick-slider .slick-item {
.main-title {
font-size: 1.4rem;
}
.sub-title {
font-size: 1rem;
}
margin-left: auto;
margin-right: auto;
}
}

@media (max-width: 564px) {
.slick-slider .slick-item {
.main-title {
font-size: 1.4rem;
}
.sub-title {
font-size: 1rem;
}
}
}

Choose a reason for hiding this comment

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

medium

The font-size rules are duplicated across these two media queries. You can combine them into a single (max-width: 768px) query to avoid repetition, and keep the margin rules in their specific range for better maintainability.

  @media (max-width: 768px) {
    .slick-slider .slick-item {
      .main-title {
        font-size: 1.4rem;
      }
      .sub-title {
        font-size: 1rem;
      }
    }
  }

  @media (max-width: 768px) and (min-width: 565px) {
    .slick-slider .slick-item {
      margin-left: auto;
      margin-right: auto;
    }
  }

Comment on lines +135 to +170
@media (min-width: 997px) and (max-width: 1245px) {
/* hide all navbar links except the logo image */
.navbar__item:not(.navbar__logo):not(img),
.navbar__link:not(.navbar__logo):not(img) {
display: none !important;
}

/* make sure logo, toggle, search stay visible */
.navbar__logo,
.navbar__logo img,
.navbar__toggle,
.navbar__search,
.DocSearch-Button {
display: inline-block !important;
}

/* push logo to the far left */
.navbar__brand {
margin-right: auto;
}

/* tidy sizes */
.navbar__logo { height: 1.8rem; }
.navbar__title { font-size: 1.1rem; }
}

/* mobile sidebar : social icons in a ROW */
@media (max-width: 996px) {
.navbar-sidebar__items .navbar__items--right,
.navbar-sidebar__items .navbar__items--right .navbar__item {
display: flex !important;
flex-direction: row !important;
gap: 0.75rem; /* space between icons */
align-items: center;
}
} No newline at end of file

Choose a reason for hiding this comment

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

medium

The use of !important is generally discouraged as it can lead to maintenance issues and make debugging styles harder. It's present in both new media queries (lines 139, 148, 165, 166). While sometimes necessary to override library styles like those in Docusaurus, it's worth investigating if you can achieve the same result by increasing selector specificity. This would make the CSS more robust and easier to reason about.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the site’s responsive layout (notably navbar behavior, the homepage slider typography, and the About section text sizing) to better fit mid-sized and small screens.

Changes:

  • Add navbar/media-query overrides for intermediate widths and mobile sidebar icon layout.
  • Adjust slider alignment styles and introduce additional responsive typography breakpoints.
  • Add multiple About-section media queries to tune text sizes across screen widths.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/css/custom.css Adds responsive navbar rules and mobile sidebar icon-row layout.
src/components/slider/index.scss Fixes alignment typo, refactors button selector, and adds responsive typography/padding rules.
src/components/About/styles.scss Adds several breakpoints to adjust About section text sizing on smaller/larger screens.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +107 to +132
@media (min-width: 1300px) and (max-width: 1515px) {
.row {
.description {
font-size: 1.1rem;
}
.name {
font-size: 1.8em;
}
.jobTitle {
font-size: 0.9rem;
}
}
}

@media (max-width: 1300px) {
.row {
.description {
font-size: 1.1rem;
}
.name {
font-size: 1.8em;
}
.jobTitle {
font-size: 0.9rem;
}
}
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

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

These two media queries apply the same font-size values and overlap at exactly 1300px. Consider consolidating into non-overlapping ranges (or a single rule with clearer breakpoints) to avoid redundant overrides and make future adjustments less error-prone.

Copilot uses AI. Check for mistakes.
Comment on lines +89 to +109
@media (max-width: 1230px) and (min-width: 993px){
.slick-slider .slick-item {
.main-title {
font-size: 2rem;
}
.sub-title {
font-size: 1.3rem;
}
}
}

@media (max-width: 992px) {
.slick-slider .slick-item {
.main-title {
font-size: 2rem;
}
.sub-title {
font-size: 1.3rem;
}
}
}
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

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

The (max-width: 1230px) and (min-width: 993px) and (max-width: 992px) media queries set identical .main-title/.sub-title sizes. This duplication makes it easy for the breakpoints to drift; consider merging into a single @media (max-width: 1230px) rule (and then override again only where sizes actually change).

Copilot uses AI. Check for mistakes.
padding-right: 20px;
padding-left: 20px;
margin: 0 0.25rem;
@media (max-width: 1230px) and (min-width: 993px){
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

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

Formatting nit: this media query is missing a space before { (compare other media queries in this repo, e.g. src/components/sectionContainer/styles.scss:26 and src/components/About/styles.scss:5, which use ) {). Aligning the formatting helps keep future diffs smaller.

Suggested change
@media (max-width: 1230px) and (min-width: 993px){
@media (max-width: 1230px) and (min-width: 993px) {

Copilot uses AI. Check for mistakes.
Comment on lines +71 to +104
@media (max-width: 435px) {
.row {
.description {
flex: 0 0 66.666667%;
max-width: 66.666667%;
font-size: 1rem;
}

.name {
font-size: 1.5em;
font-weight: 400;
margin: 20px 0 10px 0;
}

.jobTitle {
font-size: 0.5rem;
font-weight: 300;
margin: 0px 0 10px 0;
}
}
}

@media (max-width: 1024px) {
.row {
.description {
font-size: 1rem;
}
.name {
font-size: 1.5em;
}
.jobTitle {
font-size: 0.7rem;
}
}
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

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

The @media (max-width: 1024px) block comes after the more specific @media (max-width: 435px) block, so at <=435px the later rules override the intended small-screen tweaks (e.g., .jobTitle becomes 0.7rem instead of 0.5rem). Reorder the media queries (smallest last) or add a min-width range so the <=435px overrides actually win.

Copilot uses AI. Check for mistakes.
@LiZhenCheng9527
Copy link
Collaborator

/lgtm
/approve

@kmesh-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LiZhenCheng9527

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kmesh-bot kmesh-bot merged commit 9e9e727 into kmesh-net:main Feb 25, 2026
15 of 16 checks passed
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.

4 participants