Skip to content

Web build on a phone: block properties hidden in portrait (.ls-properties-area is display: none below 430px, the mobile app's override doesn't apply) #1507

Closed
logseq/logseq
#13899

Description

@hugoideler

Search first

  • I searched and no similar issues were found

What Happened?

In the web build on a phone in portrait (Safari or the home-screen web app), a block shows only the properties positioned below it (Scheduled, for example), as pills. All its other properties are missing, such as the fields of a tag. "Show hidden properties" changes to "Collapse hidden properties", but nothing appears either. This also happens when zoomed in on the block. Rotating to landscape, where the block is wider than 430px, shows everything.

The cause is one rule in src/main/frontend/components/block.css. Every .ls-block is a size container named ls-block (container-type: inline-size; container-name: ls-block;, line 1077), and lines 1119-1123 hide the whole properties area in narrow blocks:

@container ls-block (max-width: 430px) {
    .ls-properties-area {
        display: none;
    }
}

Properties with :ui-position :block-below are rendered in the pill row outside this area, so they survive. Everything else that properties-area in src/main/frontend/components/property.cljs renders, including hidden-properties-cp, has no other place on screen. The native mobile app undoes this for its own pages in src/main/mobile/components/app.css (lines 407-411):

@container ls-block (max-width: 430px) {
    .ls-mobile-page .ls-properties-area {
        display: initial;
    }
}

That stylesheet and the .ls-mobile-page class are part of the mobile app only, so the web build on a phone gets the hiding rule without the override. Both rules are unchanged on master 25b5ecf9cc (03-11-2026); the block.css rule was last touched in fcc7316c9f ("fix: add ls-block container name", 24-05-2025).

Reproduce the Bug

  1. Take a block with a tag that has its own properties with values (for example a tag with two text properties), or a Task with an empty Deadline, and zoom in on it.
  2. View it in portrait on a phone, so the block is narrower than 430px: only the pill properties show.
  3. Tap "Show hidden properties": the label changes, nothing appears.
  4. Rotate to landscape: all properties show, and the toggle works.

Expected Behavior

The block's properties show at any width, and "Show hidden properties" reveals the hidden ones, such as the empty Deadline.

Dropping the block.css rule, or giving the web build the same exception as the mobile app, fixes it. I override it locally with .ls-block .ls-properties-area { display: block; } inside the same container query, and the regular panel layout works fine on a 390pt-wide iPhone screen. If hiding them on zoomed-out blocks is intentional (as described in logseq/logseq#1024), they should at least show on a zoomed-in block, as they do in the mobile app.

Screenshots

The same block in portrait (properties missing) and in landscape (shown).

Image Image

Files

No response

Browser, Desktop or Mobile Platform Information

iPhone, iOS 27.2 (Safari), as a PWA; web build from master 408198a4fe (24-10-2026).

Additional Context

Related: logseq/logseq#1024 (tag properties not visible on iOS, closed after zooming in fixed it in the mobile app). In the web build, zooming in doesn't help.

Found and diagnosed with the help of an AI coding assistant reading the source. I confirmed it on my iPhone: the property rows are in the DOM but hidden, rotating shows them, and the override above makes them appear in portrait.

If removing the rule is acceptable, I can open a PR for it.

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Activity

  1. hugoideler commented on Nov 6, 2026

    @hugoideler
    Author

    Related, with the same cause (a fix in the mobile app.css that the web build lacks): #1509.

  2. added a commit that references this issue on Nov 11, 2026
    08e31ba
  3. yuxi-liu-wired commented on Nov 11, 2026

    @yuxi-liu-wired

    Confirmed: the @container ls-block (max-width: 430px) { .ls-properties-area { display: none } } rule in block.css goes into both the web and the mobile stylesheet, while the .ls-mobile-page exception is only in the mobile one (tailwind.all.css doesn't import src/main/mobile/**).

    Fixed in logseq/logseq#13899 (commit 08e31ba15b): the hiding rule moves from block.css into src/main/mobile/components/app.css, next to the mobile app's page-view exception. The mobile stylesheet has the same rules as before; the web stylesheet no longer hides the properties area at any width (this also covers narrow blocks in a narrow desktop sidebar).

    Checked with the built CSS in headless Chromium, with a 390px-wide block: web stylesheet before display: none (height 0), after display: block (height 112px, the same as at 600px); mobile stylesheet unchanged (hidden outside .ls-mobile-page, shown inside it).

  4. added 3 commits that reference this issue on Nov 12, 2026
    3e36be9
    379241c
    56fe6b0
  5. devin-ai-integration commented on Nov 18, 2026

    @devin-ai-integration

    Closing as fixed by logseq/logseq#13934, merged on 2026-11-17 (commit 2c142e627ee63faddcf5424992fe0ed625ba894f). The merged change removes the exact sub-430px container rule that hid .ls-properties-area in web/PWA builds. The PR documents before/after verification at a 390px viewport. This closure is based on the merged fix and its recorded verification; I did not rerun the device test in this triage.

  6. added 6 commits that reference this issue on Nov 18, 2026
    b430fae
    0491fce
    a6400a4
    9c9c663
    0f85ce7
    d612626
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions