aimeos / ai-cms-grapesjs

GrapesJS CMS integration into Aimeos
GNU Lesser General Public License v2.1
25 stars 20 forks source link

Fixed editor columns insert mode #8

Closed Dahercode closed 3 years ago

Dahercode commented 3 years ago

https://github.com/aimeos/ai-cms-grapesjs/issues/7

aimeos commented 3 years ago

In our setup this has no effect because it's overwritten by:

.gjs-dashed .row, .gjs-dashed .col, .gjs-dashed [class^="col-"] {
    min-height: 1.5rem !important;
}
Dahercode commented 3 years ago

I think it does, i have the same setup as yours :

".gjs-dashed .row" is not triggered somehow. You can try ^^

aimeos commented 3 years ago

In our case it is and this seems to make the difference. Does it work for you if you use this:

        styles: `
            img {
                max-width: 100%;
            }
            form {
                padding: 10px 0;
            }
            .row, .col, [class^="col-"] {
                min-height: 1.5rem !important;
            }
            .row {
                display: flex; padding: 10px 0; width: auto;
            }
            .table {
                border-collapse: initial;
            }
            .table .row {
                display: table-row;
            }
            .table .cell {
                width: auto; height: auto;
            }
            ::-webkit-scrollbar {
                background-color: var(--bs-bg, #f8fafc); width: 0.25rem;
            }
            ::-webkit-scrollbar-thumb {
                background-color: #505860; outline: none;
            }
            body {
                background-color: #F8FAFC; scrollbar-color: #505860 transparent; scrollbar-width: thin;
            }
            .contact-form .contact-pot {
                display: none;
            }
        `,
Dahercode commented 3 years ago

Yes, it works just fine. Any idea why ".gjs-dashed .row" is not triggered outside your environment ?

aimeos commented 3 years ago

Great! Can you modify your PR accordingly?

aimeos commented 3 years ago

Thanks a lot!