Skip to content

fix: show block properties on narrow web pages - #13934

Merged
tiensonqin merged 1 commit into
masterfrom
logseq/show-narrow-block-properties-103b
Nov 17, 2026
Merged

tiensonqin merged 1 commit into
masterfrom
logseq/show-narrow-block-properties-103b

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

logseq/db-test#1507

Cause

Every .ls-block is a container named ls-block. This rule in src/main/frontend/components/block.css hid the whole properties area whenever that container was under 430px:

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

Pill properties with :ui-position :block-below sit outside that element, so they stayed visible. Tag fields, Deadline, and the contents of "Show hidden properties" are rendered inside .ls-properties-area, so they disappeared.

The native app undoes this in src/main/mobile/components/app.css with .ls-mobile-page .ls-properties-area { display: initial }. Web and PWA builds never get .ls-mobile-page, so the hide rule always won in portrait.

Fix

Remove the hide rule. Properties use their normal display on the web build at any width. The mobile override is unchanged, so a narrow .ls-mobile-page block still computes display: initial.

Check

Web app, iPhone-sized viewport (390×844), block width 290px. No .ls-mobile-page.

Before, .ls-properties-area computed display: none (the Store and Notes rows were in the DOM and not painted):

Before: tag properties hidden on a 390px web viewport

After, the same block computes display: block and the tag fields are visible. The When pill is unchanged:

After: tag properties visible on a 390px web viewport

A 944px-wide block on the same page still computes display: block. Injecting the existing mobile override under .ls-mobile-page still computes inline below 430px.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@tiensonqin tiensonqin closed this Nov 17, 2026
@tiensonqin
tiensonqin deleted the logseq/show-narrow-block-properties-103b branch November 17, 2026 02:16
@tiensonqin
tiensonqin restored the logseq/show-narrow-block-properties-103b branch November 17, 2026 03:18
@tiensonqin tiensonqin reopened this Nov 17, 2026
Remove the ls-block container query that set .ls-properties-area to
display:none below 430px. Web and PWA builds never receive the
.ls-mobile-page override, so tag fields stayed hidden in portrait.

The mobile override in app.css is unchanged.

Co-authored-by: Tienson Qin <[email protected]>
@tiensonqin
tiensonqin force-pushed the logseq/show-narrow-block-properties-103b branch from 0d77062 to 2286ead Compare November 17, 2026 03:19
@tiensonqin
tiensonqin merged commit 2c142e6 into master Nov 17, 2026
9 checks passed
@tiensonqin
tiensonqin deleted the logseq/show-narrow-block-properties-103b branch November 17, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants