Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
Olivero theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2020 at 17:52 UTC
Updated:
8 Jul 2021 at 13:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kostyashupenkoComment #3
kostyashupenkoComment #4
mherchelThis looks good. Tested this and it works exactly like expected.
At some point I want to add utility classes like
md:pull-1andlg:w-12etc. But we can look into refactoring this at that point.+1 RTBC!
Comment #5
mherchelComment #6
lauriiiCould someone reupload the patch so that we can get the CI to run?
Comment #7
mherchel@kostyashupenko's patch from #2 is attached.
Comment #8
mherchelThe previous patch does not apply. Re-rolled patch from #2 attached.
Comment #9
lauriiiI'm wondering if we could improve this part. What if I wanted to use this on something else than article, or field with another name than
field_image?Comment #10
fmb commentedRe-rolled patch.
Comment #11
anmolgoyal74 commentedWe can add
wide-imageclass to theimagefield type.Comment #12
anmolgoyal74 commentedComment #13
andy-blum#12 looks good. Patch applies cleanly, passed CI, and does what it needs to.
- Moves & updates css from 'css/components/field-image' to 'css/components/wide-image'
- Updates libraries.yml with new CSS file
- Adds 'wide-image' class to fields when field is of type 'image' and #view_mode is 'full'
Screenshot attached, moving to RTBC.
Comment #14
andy-blumComment #15
mherchelTugboat preview for #12: https://3173008-wide-image-5gm4kfqqwn2txfrqlr8a2eubfiq6bnsh.tugboat.qa/
Comment #16
mherchel+1 on RTBC
Comment #19
catchRestoring status after HEAD was broken.
Comment #20
lauriiiShould we also check if the field cardinality has been configured to allow multiple images since this probably only makes sense for fields with single image?
Comment #21
mherchelComment #22
paulocsI'm working on it.
Comment #23
paulocsComment #24
mherchelThis looks great to me. RTBC! Thank you for the work.
One note:
This prevents the output of the
wide-imageCSS class if the field is set to allow multiple images, but only one image is uploaded. But honestly, I'm okay with this.Comment #25
mherchelopened up followup issue #3220566: Olivero: wide image can overlap sidebar when toolbar open and in vertical mode
Comment #28
lauriiiCommitted f65ce59 and pushed to 9.3.x and cherry-picked to 9.2.x because Olivero is experimental. Thanks!