We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 301cd98 commit 4b0c3edCopy full SHA for 4b0c3ed
src/Cards/CardList.js
@@ -10,7 +10,7 @@ function calcWidth() {
10
const middle = 768
11
const large = 992
12
const xlarge = 1200
13
- const winWidth = window.innerWidth
+ const winWidth = document.getElementsByTagName('main')[0].clientWidth || window.innerWidth
14
15
if (winWidth >= xlarge) return '25%'
16
else if (winWidth >= large) return '33.33%'
0 commit comments