Skip to content

Fix content shift in editor if gallery is empty - #627

Merged
uldisrudzitis merged 1 commit into
masterfrom
enh-fix-entry-editor-layout-shift
Aug 25, 2026
Merged

Fix content shift in editor if gallery is empty#627
uldisrudzitis merged 1 commit into
masterfrom
enh-fix-entry-editor-layout-shift

Conversation

@uldisrudzitis

@uldisrudzitis uldisrudzitis commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Fix content shift in editor if gallery is empty: shows placeholder on entry hover

Summary by CodeRabbit

  • Style
    • Empty gallery areas now collapse automatically, reducing unnecessary whitespace.
    • Gallery areas smoothly expand when the related entry is hovered or focused.

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f9cd4677-41ca-4ec4-b114-d90f46dafaa5

📥 Commits

Reviewing files that changed from the base of the PR and between 5fca696 and b8144a1.

📒 Files selected for processing (1)
  • engine/css/editor.css.php

Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.


📝 Walkthrough

Walkthrough

The editor CSS removes the gallery container minimum height. Empty gallery containers collapse by default and expand to 24px when the containing entry is hovered or focused within.

Changes

Gallery layout behavior

Layer / File(s) Summary
Empty gallery interaction styling
engine/css/editor.css.php
Empty gallery containers use collapsed, overflow-hidden styling. They expand to 24px on entry hover or focus-within with a brief transition.

Estimated code review effort: 2 (Simple) | ~5 minutes

Merge Risk: ⚪ Minimal · up to b8144

This PR makes a localized editor layout adjustment for empty galleries, and no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change. It identifies the content shift problem and the empty gallery condition addressed by the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch enh-fix-entry-editor-layout-shift

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@uldisrudzitis
uldisrudzitis merged commit 06836d6 into master Aug 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant