DigitalCommons / digitalcommons-ghost-theme

The theme used for the Ghost-based DC website.
MIT License
0 stars 0 forks source link

fix lx page featured image glitch - shoud not appear in margin #12

Open wu-lee opened 2 years ago

wu-lee commented 2 years ago

The Land Explorer page - and presumably others - when a featured image is added, it appears on the page pushed over to the right. Presumably something broken in the custom page templates.

wu-lee commented 2 years ago

Inspecting the styles, it turns out this style in layout.css is the culprit, which has the label "wide-tart" instead of "wide-start":

.gh-canvas {
    display: grid;
    grid-template-columns:
        [full-start]
        minmax(var(--gap), auto)
        [wide-tart]
        minmax(auto, 240px)
        [main-start]
        min(var(--content-width, 720px), calc(100% - calc(var(--gap) * 2)))
        [main-end]
        minmax(auto, 240px)
        [wide-end]
        minmax(var(--gap), auto)
        [full-end];
}

This comes from the shared-theme-assets package which the theme uses - so not one of my mistakes! Upgrading this package seems to get a fixed version.