Skip to content

Add scrollbar-hide utility and update Next.js type reference#6

Merged
kushal238 merged 1 commit into
mainfrom
feat/pr-screenshots
Feb 8, 2026
Merged

Add scrollbar-hide utility and update Next.js type reference#6
kushal238 merged 1 commit into
mainfrom
feat/pr-screenshots

Conversation

@kushal238

Copy link
Copy Markdown
Owner
  • Add .scrollbar-hide CSS utility for hiding carousel scrollbar
  • next-env.d.ts auto-updated by Next.js (path change)

- Add .scrollbar-hide CSS utility for hiding carousel scrollbar
- next-env.d.ts auto-updated by Next.js (path change)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Feb 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ariamed Ready Ready Preview, Comment Feb 8, 2026 8:57pm

@kushal238
kushal238 merged commit d82304c into main Feb 8, 2026
3 checks passed
@kushal238
kushal238 deleted the feat/pr-screenshots branch February 8, 2026 20:57
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @kushal238, 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 addresses two distinct areas: enhancing UI aesthetics and maintaining development environment consistency. It introduces a new CSS utility to provide a cleaner visual experience by hiding scrollbars for specific elements, and it updates a Next.js configuration file to align with changes in how Next.js manages its internal type definitions, ensuring the project remains up-to-date with the framework's structure.

Highlights

  • CSS Utility: Introduced a new ".scrollbar-hide" CSS utility to effectively hide scrollbars, particularly useful for elements like carousels, ensuring a cleaner visual presentation.
  • Next.js Configuration Update: Updated the "next-env.d.ts" file to reflect a change in the path for Next.js type references, a modification typically auto-generated by the framework.

🧠 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
  • next-env.d.ts
    • Updated the import path for Next.js route types from "./.next/dev/types/routes.d.ts" to "./.next/types/routes.d.ts".
  • src/index.css
    • Added a new CSS utility class ".scrollbar-hide" which includes ::-webkit-scrollbar { display: none; }, -ms-overflow-style: none;, and scrollbar-width: none; to hide scrollbars across different browsers.
Activity
  • No human activity (comments, reviews) has been recorded on this pull request yet.
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.

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

Copy link
Copy Markdown

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 adds a .scrollbar-hide CSS utility and updates a Next.js type definition file. The CSS change is functional, but I've provided a suggestion to implement it as a Tailwind plugin for better maintainability, along with a minor formatting fix. The change to next-env.d.ts is an auto-update from Next.js and requires no changes.

Comment thread src/index.css
Comment on lines +167 to +173
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

While adding this utility class directly to the CSS file works, a more idiomatic approach for extending Tailwind CSS is to use a plugin. This keeps all your Tailwind configuration in one place (tailwind.config.ts), improving maintainability and organization.

You could create a small plugin to add this utility. Here's an example of how you could do it in tailwind.config.ts:

// tailwind.config.ts
const plugin = require('tailwindcss/plugin')

module.exports = {
  // ...
  plugins: [
    require("tailwindcss-animate"),
    plugin(function({ addUtilities }) {
      addUtilities({
        '.scrollbar-hide': {
          /* IE and Edge */
          '-ms-overflow-style': 'none',

          /* Firefox */
          'scrollbar-width': 'none',

          /* Safari and Chrome */
          '&::-webkit-scrollbar': {
            display: 'none'
          }
        }
      })
    })
  ],
}

With this approach, you could remove the added CSS from this file.

Comment thread src/index.css
-ms-overflow-style: none;
scrollbar-width: none;
}
} No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

It's a good practice to end files with a newline character. Some tools and platforms might have issues without it. Please add a newline at the end of the file.

}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant