question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to reduce height of dashboard to less than 400px

See original GitHub issue

I’m trying to reduce the height of the Uppy Dashboard plugin to be 200px to increase screen real estate. I’ve restricted the control to a single file upload so there is no need for all the extra space in the panel.

Using the height and maxHeight options the smallest I’m able to get the dashboard is 400px height:

Minimum height of Uppy Dashboard

My configuration is as follows:

const uppy = new Uppy({
  autoProceed: false,
    restrictions: {
      maxNumberOfFiles: 1,
      minNumberOfFiles: 1,
      allowedFileTypes: ["application/pdf"]
    }
  })
  .use(Dashboard, {
    target: "#uppy",
    inline: true,
    height: 200,
    maxHeight: 200
  });

How can I further reduce the height so it matches a single row of file icons?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

10reactions
DRAKO999commented, Nov 1, 2019

Still unable to reduce the height on uppy/react Dashboard

1reaction
5minpausecommented, May 21, 2021

What is the latest status on this? I have the react/dashbord and I cannot reduce its size…

The whole component does not behave “responsive” for me. Did I miss something in the docs about how to use it?

edit: This comment (https://github.com/transloadit/uppy/issues/1758#issuecomment-625810373) helped me: set the width of the component to 100%.

<Dashboard uppy={uppy}  width='100%' />

The height is still an issue, but at least its not too wide right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Fix Width (or Height) for Some Containers in ...
Place the container under the Horizontal or Vertical Container in a nest. You can adjust the size (width or height) of objects (worksheets, ......
Read more >
How to adjust table height in flexdashboard? - Stack Overflow
The datatable will be height-adjusted based on the available space. ... a scroll bar would appear when the window is smaller than 400px....
Read more >
Build your Responsive website without media query
The logic is easy. When the screen width increase, 100%/3 will be bigger than 400px so it's the max value that will get...
Read more >
Everything You Need to Know About WordPress Image Sizes
How to Change Default Image Sizes (and When You'd Need To) ... Suppose you upload an image that is smaller than the largest...
Read more >
Fractional unit (FR) overview - Webflow University
In one column we add an image of width: 400px and max-width:none. Now this column cannot be less than 400px. But that doesn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found