We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04b2185 commit 1100ce1Copy full SHA for 1100ce1
index.js
@@ -13,11 +13,7 @@ module.exports = plugin.withOptions(
13
*/
14
const allScreens = theme('screens') || {};
15
const enabledScreenNames = Object.keys(allScreens['__CSS_VALUES__'] || {});
16
- const screens = Object.fromEntries(
17
- Object.entries(allScreens).filter(
18
- ([name, _size]) => enabledScreenNames.includes(name)
19
- )
20
- );
+ const screens = Object.fromEntries(enabledScreenNames.map((name) => [name, allScreens[name]]));
21
22
const positions = position.split(',').map(position => position.trim());
23
const positionY = ['top', 'bottom'].includes(positions[0]) ? positions[0] : 'bottom';
0 commit comments