-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
42678 adaptive image resolution #710
Merged
Merged
Changes from 30 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
d11c0aa
42678 adaptive image resolution
yeneastgate 9fdd269
42678 update unit test
yeneastgate 7821c29
42678 refactor code
yeneastgate a983cf2
Merge branch 'master' into 42678-adaptive-image-resolution
yeneastgate 8ad4d12
Merge branch 'master' into 42678-adaptive-image-resolution
yeneastgate c6d1c90
Merge branch 'master' into 42678-adaptive-image-resolution
fredericalpers f139de8
Merge branch 'master' into 42678-adaptive-image-resolution
yeneastgate c7ba1f0
refactor and fix output for responsive image sources
andernath b09d572
Merge remote-tracking branch 'origin/42678-adaptive-image-resolution'…
andernath 77456a8
fix unit test
andernath 0ee616f
fix unit test
andernath d783150
fix unit test
andernath 65f7c97
fix unit test
andernath c527e1c
fix unit test
andernath 3ac8b6b
fix unit test
andernath 92f54c0
fix unit test
andernath d0e4447
fix smoketest for <=PHP7.2
andernath 2137c0f
fix width and height dimensions
andernath 3cad47c
fix unittests
andernath 5419dd8
Remove unused params
andernath 45a91a2
Fix missing styling
andernath db9841a
adapt image sizes
pospisk 56c352e
renamed variable
pospisk 2500006
adapt image sizes
pospisk b1d807d
adapt image sizes
pospisk c5c98ec
fix unit test
pospisk bdb074d
fix unit test
pospisk 33b7366
revert
pospisk bb8808b
fix unit test
pospisk 3801d29
fix unit test
pospisk 2c356bb
revert width sizes to a value with the best possible compatibility wi…
andernath dc9bcca
Change image width on mobile to fit for lighthouse testing
andernath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wie ermittelst du die maximale Breite für ein Bild?
Ich bin hier von einem fluid container ausgegangen, in dem der Inhalt liegt und habe mir die Breiten bei einem dreiteiligen Layout angeschaut.
Hast du hier vielleicht Höhe und Breite vertauscht?
Ist das bei detail und similar estate eventuell der selber Grund?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich hatte das mit der W3PM Neve-Child Instanz getestet (das Ticket weist auch in diese Richtung), aber gerade ist mir klar geworden, dass die Größen hier leider teilweise irrelevant sind, weil jeder Benutzer ein anderes Theme mit unterschiedlichen Inhaltsbreiten verwenden kann. Das führt dazu, dass wir keine „richtigen“ Größen für das Standard-Template liefern können, da die Seiten immer unterschiedlich sein werden.
Die Breiten hatte ich manuell anhand der Elementbreite für die jeweiligen Breakpoints getestet:Zum Beispiel bei 576px - 768px (sm) ist der Mittelwert des Breakpoints 672px, und dafür hatte ich 350px genommen, weil, wenn 2 Spalten angezeigt werden, die 300px & 300px breit sind, bei 672px dann ein Bild 50px herunterskaliert werden muss, und bei 767px ist es dann 350px breit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Genau deswegen habe ich versucht eine sinnvolle größtmögliche Breite bei einem dreiteiligen Layout zu wählen.
Hast du einen besseren Vorschlag, als dieses Vorgehen?
Wenn das Styling customized wurde, werden wahrscheinlich eigene Templates verwendet und da können die Breakpoint Größen individuell angepasst werden.
Ich werde den Commit rückgängig machen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nein, deine Bildgrößen können dann bleiben. Nur bei xs verwende bitte eine kleinere Größe als 545px.
Lighthouse Mobile testet mit 412px device width