Skip to content
Extraits de code Groupes Projets
Valider cea55977 rédigé par Naoki Kosaka's avatar Naoki Kosaka Validation de Eugen Rochko
Parcourir les fichiers

Fix hasSize condition in secSet and sizes. (#4969)

parent 48d77ea1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -119,8 +119,8 @@ class Item extends React.PureComponent { ...@@ -119,8 +119,8 @@ class Item extends React.PureComponent {
const hasSize = typeof originalWidth === 'number' && typeof previewWidth === 'number'; const hasSize = typeof originalWidth === 'number' && typeof previewWidth === 'number';
const srcSet = hasSize && `${originalUrl} ${originalWidth}w, ${previewUrl} ${previewWidth}w`; const srcSet = hasSize ? `${originalUrl} ${originalWidth}w, ${previewUrl} ${previewWidth}w` : null;
const sizes = hasSize && `(min-width: 1025px) ${320 * (width / 100)}px, ${width}vw`; const sizes = hasSize ? `(min-width: 1025px) ${320 * (width / 100)}px, ${width}vw` : null;
thumbnail = ( thumbnail = (
<a <a
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter