Issue with displaying the scrollbar in Tailwindcss


<div className="col-span-3 h-screen overflow-y-scroll   ">
      <ul className="m-5">
        <li className="flex items-center mb-4">
          <FontAwesomeIcon
            icon={faRss}
            className="m-2"
            color="black"
            size="lg"
          />
          <span className="ml-3">Feed</span>
        </li>
        <li className="flex items-center mb-4">
          <FontAwesomeIcon
            icon={faCommentDots}
            className="m-2"
            color="black"
            size="lg"
          />
          <span className="ml-3">Comments</span>
        </li>
        ...
        <button className="bg-gray-200 border-none p-2 rounded">
          Show More
        </button>
      </ul>
      <hr className="m-2" />
      <ul className="">
        <li className="flex m-4 items-center">
          <img src={one} />
          <span className="ml-2">Jane Doe</span>
        </li>
        ...
      </ul>
    </div>

https://i.sstatic.net/991pU.png

I want users to be able to scroll on the left side of the page to see their friends or anyone they follow. Enhancing user experience by adding a scroll option as the following list grows, allowing seamless navigation. However, there seems to be an issue where scrolling affects the entire page. How can I resolve this problem?

Answer №1

Make sure to review all connected CSS files, especially in your react index.css file, to ensure that the following CSS line has not been added:

::-webkit-scrollbar{
    display: none;
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Explore the latest update in the AngularJS single page application that introduces a new feature specifically designed for the initial login

Our AngularJS single page application has a new feature that we are ready to launch for customer use. We want to inform the logged in user about this new feature so they can start using it. We are looking for a small animated information symbol with a too ...

A pair of div containers with one set to adjust its height automatically and the other to

I have a container with a height set to 100%. Inside, there are two child divs. Is it achievable to achieve the following heights: First div equal to the height of its content Second div equal to the remaining free space in the container ...

Several socket.io sessions have been initiated

I'm fairly new to working with node.js and currently attempting to set up a server using socketio to send messages to the frontend (React). However, when running the server and multiple connections are being established, I encounter the following outp ...

Steps to hiding the sidebar in react native with a touch anywhere on the screen

I recently customized a sidebar for a client's specific needs. While I successfully implemented a toggle function for the sidebar, I encountered a challenge: "How do I close the sidebar when the user presses anywhere on the screen?" Although I initia ...

I am struggling to properly align the login form in the center of the login page

Can someone please assist me in centering the login form on the login page? I've attempted using align-items-center and justify-content-center but it's still aligning at the top. Any help would be greatly appreciated as I've spent a signific ...

Completing a third-party htaccess file

What's the best way to create a nodejs script that periodically monitors a 3rd-party website, but encounters issues with a username and password prompt generated by .htpasswd/.htacces authentication? How can nodejs handle this situation? ...

storing information in local storage is not optimal in terms of speed

Within my jQuery mobile app, I have two pages labeled as #list and #show. The #list page contains multiple items with unique IDs. When a user clicks on item number 5, the corresponding ID is stored in localStorage and they are redirected to the #show page. ...

Invoke callback function to manage modal visibility

My project includes a modal for displaying a login/register form. The default behavior is that the modal opens when triggered by another component using the props show. This setup works perfectly when the modal is called by this specific component. Furthe ...

If you utilize a span element with the attribute role="textbox" and contenteditable set to true, the copying and pasting of text within it may not function correctly

Consider the following span: <span class="comment-box2" role="textbox" contentEditable=true></span> Using the following CSS: .comment-box2 { display: block; width: 100%; overflow: hidden; outline: none; ...

Issues arise with the functionality of Zurb Foundation 5 tabs

Utilizing the tabs feature in ZURB Foundation 5, I've noticed that clicking on a tab changes the hash in the URL. However, I actually want to prevent this behavior as I rely on the hash for managing page loads. Although I attempted to use preventDef ...

Implementing React inline styles by directly incorporating brackets into the HTML rendering

I'm working on a project in React using create-react-app and trying to apply an inline style. Based on my research, the following line of code should work fine: <div id="root" style={{ height: 'auto' }}></div> However, when I r ...

Discover the method for retrieving the upcoming song's duration with jplayer

Hey there, I have a question regarding the jPlayer music player. Currently, I am able to retrieve the duration of the current song using the following code snippet: $("#jquery_jplayer_1").data("jPlayer").status.duration; However, I now want to obtain t ...

Iterate through the array in order to showcase or output it in PHP syntax sourced from an API

[0] => Array ( [id] => 6 [name] => Digitally Imported Psy Goatrance [country] => GB [image] => Array ( [url] => https://img.dirble.com/station/6/original.png ...

Is there a way for me to access and retrieve the content of a tinymce textarea that has been modified

After clicking the 'Edit HTML Below then Click Display' button, my input texts work perfectly fine. However, I am facing issues with my tinymce textareas as they do not send the new value to the iframe when edited. How can I resolve this problem ...

Tips for dynamically injecting HTML content in an Angular web application

I'm currently working on an angular website dedicated to a specific book. One of the features I want to include is the ability for users to select a chapter and view an excerpt from that chapter in HTML format. However, I'm facing a challenge wh ...

My AJAX checkbox change event is not functioning, what could be causing this issue?

This is a sample of the code I'm working with: <form asp-action="Save" asp-controller="ClassesHeld" method="post"> <input asp-for="ClassHeldId" value="@Model.ClassHeldId" hidden /> <div class="form-group"> ...

What is the best way to split a JSON array into two separate JSON arrays?

Greetings, I have received a JSON response. response.data: [{ "id": 1, "datefrom": "2018-08-30 11:21:25", "dateto": "2018-08-31 11:21:25", }, { "id": 2, "datefrom": "2018-08-30 11:21:25", "dateto": " ...

Issue with Angular ng-repeat not updating after array push

Struggling to grasp Angular concepts such as scopes has been a challenge for me. Recently, I encountered an issue where ng-repeat was not updating after adding a new 'wire' to my array. I suspected it could be due to the array being out of scope ...

Having trouble getting NPM environment variables to function properly on a Windows system?

I have a confusion in my package.json file where I am attempting to compile less code using versioning. Here is an example of what I am trying to achieve: "scripts" { ... "build:css": "lessc --source-map css/index.less build/$npm_package_name.$npm_package ...

Tips for comparing strings that are nearly identical

Looking to filter elements from an array based on partial matching of a string. For example, trying to match PGVF.NonSubmit.Action with NonSubmit by checking if the string contains certain keywords. The current code is not functioning as expected and only ...