Add scrollbar-hide utility and update Next.js type reference#6
Conversation
kushal238
commented
Feb 8, 2026
- 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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary of ChangesHello @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
🧠 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
Activity
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
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.
| .scrollbar-hide::-webkit-scrollbar { | ||
| display: none; | ||
| } | ||
| .scrollbar-hide { | ||
| -ms-overflow-style: none; | ||
| scrollbar-width: none; | ||
| } |
There was a problem hiding this comment.
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.
| -ms-overflow-style: none; | ||
| scrollbar-width: none; | ||
| } | ||
| } No newline at end of file |