Skip to content

Mobile layout ignores REVERSE parameter in hero component #828

Closed

Description

@amrutadotorg

When using the hero component, the description is always displayed above the image on mobile devices, regardless of whether the REVERSE parameter is set to TRUE or FALSE. The desired behavior is to have the description appear below the image on mobile.

    select 
    'hero'                 as component,
    '"When Kundalini rises, your Spirit starts emitting vibrations—spiritual vibrations—on your central nervous system. And you start feeling a cool breeze on your hands, out of your fontanel bone area. And then these fingers, which represent the centers within you, start speaking, telling you what’s wrong and what’s kind. Also, they tell you about others—what is wrong with the others." - Shri Mataji Nirmala Devi'   as description_md,
    'jpg/ShriMataji2.webp' as image,
    TRUE as 'reverse' ,
    '#lang_id'   as link,
    'Feel the Cool Breeze of the Spirit' as link_text;

See https://coolbreeze.org/

Activity

  1. added
    bug
    on Feb 22, 2025
  2. 81reap commented on Oct 29, 2026

    @81reap
    Collaborator

    I think this is still an issue

    reproduction

    $ cat tests/end-to-end/fixtures/repro_828/index.sql 
    SELECT 'hero' AS component, 'Title' AS title, 'Description' AS description, 'https://placehold.co/600x400.png' AS image, TRUE AS reverse;
    
    $ cat tests/end-to-end/fixtures/repro_828/test.ts 
    import { expect, test } from "../../fixture.ts";
    
    test.use({ viewport: { width: 390, height: 844 } });
    
    test("a reversed hero shows the image above the description on phones", async ({ page }) => {
      const image = await page.locator(".hero-image").boundingBox();
      const description = await page.getByText("Description").boundingBox();
      expect(image?.y).toBeLessThan(description?.y ?? 0);
    });
    repro_828 postgres
    v0.36.0 ✘ failed
    v0.47.0 ✘ failed
    tree ✘ failed

    On commit 616df27: nix run .#reproduce -- repro_828 postgres v0.36.0 v0.47.0 tree

  3. added a commit that references this issue on Oct 30, 2026
    c5a34fc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions