Hi,
I have a fresh install of D8, with Layout Builder enabled on Page nodes individually (so editable within front theme).
While i had no problem with Bartik, when i installed Bootstrap theme the UI of Layout Builder is quite "broken" when adding/editing a section or a block :
- page is frozen (overflow hidden on body), not critical but it is very useful to be able to scroll up/down while adding a custom block
- the "add section/block" panel doesn't look good (too large, labels, etc) and is not positioned correctly
- the "configure block" panel is quite broken as well
It looks like Bootstrap theme is adding some classes (modal...) that change the default display, which could be great if it was on purpose, but i don't think it is the case.
Did i missed any setting which could solve this ?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | layout_broken.png | 356.66 KB | ambuj_gupta |
| #4 | layout-builder_img2.png | 393.66 KB | asmita26 |
| #4 | layout-builder_img1.png | 270.83 KB | asmita26 |
| #4 | bootstrap-layout_builder_theme-3124174-4.patch | 1.19 KB | asmita26 |
| screen3.jpg | 28.75 KB | EricRondo |
Comments
Comment #2
EricRondo commentedFor information, disabling the Modals option in theme settings solves most of the positionning issues (visible on the screenshots).
Anyway, the rendering of the panels/buttons/etc is still not very satisfying. For the moment i will add some custom css to solve these.
Comment #3
asmita26 commentedComment #4
asmita26 commentedFixed broken theme with layout builder on enabling modal configurations of bootstrap and verified by disabling it as well. Added css realted fix through js as wrapper seems to be missing when modal configuration is enabled.
Comment #5
hansa11 commentedComment #6
ambuj_gupta commentedComment #7
ambuj_gupta commentedAfter applying patch # 4. I am still able to see the broken layout.
@asmita26. Please check.
Steps to Test:
Prerequite: Drupal 8.9
1. Install bootstrap module using composer.
2. Enable the Module and Apply the patch
3. Go to "admin/structure/types/manage/page/display" and enable Layout builder.
4. Create a basic content type. And edit the node.
5. Click on the Layout button.
6. Click on add block. And check
Comment #8
ambuj_gupta commentedComment #9
asmita26 commentedComment #10
jordik commentedTry out the module Bootstrap Layout Builder.
Comment #11
joseph.olstadseems like there's still an issue, is anyone having great success with bootstrap versions newer than 8.x-3.21 ?
or any version for that matter using this patch above?
Comment #12
joseph.olstadhmm, the project description here leads me to believe it might be fixed by this:
https://www.drupal.org/project/media_library_theme_reset
Comment #13
joseph.olstadperhaps we need both media_library_theme_reset module installed AND this patch?
Comment #14
hatuhay commentedComment #15
joseph.olstadI believe this was fixed upstream, otherwise please check the advice from this commenté
From this issue:
#2992601: [bootstrap] Layout builder - drag & drop and contextual links not working