Are there alternative methods to improve the responsiveness of a column layout?

Check out this codesandbox I created to display my current status. When you change the column-count to three, a significant amount of information becomes hidden because it doesn't scroll.

I've attempted using grid and flexbox layouts, but everything still arranges itself from left to right rather than top to bottom.

Here's the link to the codesandbox

Answer №1

To resolve the issue, simply include the style overflow: auto in your code on line 119.

Here is an example of your adjusted code:

const Container = styled.div`
  height: 75%;
  width: 75%;
  background: hsla(0deg, 50%, 100%, 1);
  padding: 20px 40px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 120;
  overflow: auto;
`;

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

How can we ensure that React state remains unaltered when modifying an array set to state?

Hope you're having a wonderful day! I'm encountering a significant problem with React. I have a state that contains an array. Within a function, I create a copy of the state in a new variable. However, any modifications made to this new variable ...

What is the best way to adjust the placement of this object so it is anchored to the left side?

https://i.sstatic.net/k8aF1.png I'm struggling to position one of my divs more to the left within a flex container. No matter what I try, changing the class of the div doesn't seem to have any effect. Here's the code snippet: import React f ...

Ensure that Bootstrap collapse is opened on desktop devices but closed on mobile devices

Is there a way to make a collapse open on desktop and closed on mobile using only Bootstrap? On Desktop: https://i.sstatic.net/IwHCv.png On Mobile: Here, the content should only be displayed when you click on the title of each group https://i.sstatic.n ...

Error in React js: npm is reporting an issue stating that the script "build" is missing

After creating a new app using the react template, I encountered an issue in my github actions. When I attempted to npm install, everything worked smoothly initially. However, when I tried running npm run build later on, I encountered an error stating "n ...

Updating state within a loop of properties in a React ComponentDidUpdate function

I have been working on a project where I needed to update the state after the componentDidMount lifecycle method. The props that I am expecting in the child component are only available at mount, so I can only update the state after that point. The only so ...

Uncovering the Custom Input Value in the 'Create' or 'Edit' Component with React-Admin

Lately, I've been on a quest to find a solution for extracting the value of my custom input component within the parameters of the create/edit component. I followed Material UI's example in this link while creating the component. Although the c ...

How do I access the v4 documentation for MUI?

Incorporating @material-ui/icons into my project has been a game-changer. I am eager to delve into the source code behind this resourceful tool. A visit to https://www.npmjs.com/package/@material-ui/icons brought me closer, but I hit a roadblock when nav ...

what are some tips for making Material-Ui Chips editable?

I am striving to achieve a similar result like the 4th Example using ReactJS and Material-ui. I have created something different by overlapping two fields, one being a normal input shown on focus for text editing and the other a chips container displayed ...

Switch the view to a grid layout upon clicking

Using bootstrap 5, I've successfully created a list view: <div class="col"> Click to switch to grid/list </div> Below is the content list: <div class="row mt-3 list"> list view ... ..... ....... </div ...

Can a tab control in ReactJS be designed without resetting the state of the content?

Here's the React Hooks code I'm working on: function Panel({children,title}){ var [count,set_count]=React.useState(0) React.useEffect(_=>{ console.log(title,'mount') return _x=>console.log(title,'unmou ...

React component allowing for the reuse of avatars

As a novice in React, I've encountered a challenge. My goal is to develop a simple reusable component using MUI. Specifically, I aim to create an avatar component that can be easily customized with different images when called upon. I want the flexibi ...

Display captions on react-player videos using an .srt file

Currently, I am working on a React/Typescript project with Next.js. A key feature of this project is a modal that utilizes 'react-player' to display videos. While the video and modal are functioning as intended, I am looking to incorporate capti ...

Animation of Blink Effect using Material UI

Currently, I am in the process of developing a GatsbyJS website using Material UI. I have been attempting to create a blinking animation by utilizing the withStyles HOC. I made an attempt to include the animation within the styles: const styles = theme =&g ...

What is the best way to display a responsive website design exclusively for certain devices?

My website currently lacks responsiveness. Typically, we can check if a website is responsive by resizing the browser to see if it adjusts using CSS3 media queries. However, I am looking to create a better user experience by ensuring that visitors using a ...

Exploring the art of styling in Angular6

I am looking to change the text color when a specific ID is clicked <nav class="navbar "> <ul class="navbar-nav"> <li *ngFor="let item of items"> <a class="nav-link" >{{item.title}}</a> ...

Is there a way to enable multiple selections in a particular section?

Currently, I am in the process of working on my step by step order and I want to express my gratitude for all the assistance I have received so far. Despite the help, I still have some unanswered questions! The steps in my project are categorized into dif ...

Harnessing Internationalization in Vanilla JavaScript

I am currently working on a React project and have integrated internationalization using i18nexus. I am now attempting to utilize the translations in a regular JavaScript file. index.js ` import React, { Suspense } from "react"; import { Browser ...

Are background images covering hidden text detrimental to accessibility?

Is there a way to display images of text instead of actual text for my menu? I have implemented spans within each menu link. These spans have specific dimensions, block display properties, the text is indented to be hidden, and the background image is set ...

Ways to incorporate margins into text on PDF pages produced by Puppeteer without altering the background color

I am currently using puppeteer to generate PDFs that contain dynamic content. My goal is to include margins/padding above and below the text on consecutive pages. Unfortunately, when I try to add margins with the property margin: { top: "1cm", bottom: "1 ...

I'm encountering an issue with my react-dropdown-select component where the item

I am encountering an issue while trying to parse the selected dropdown item into a Prop. The error message I receive is: TypeError: Cannot read property 'name' of undefined I have tried creating a new Prop and parsing it through there, but it di ...