Olivero: Show content preview checkbox is not center aligned with the layout builder buttons.

Created on 28 November 2023, 8 months ago
Updated 17 April 2024, 3 months ago

Problem/Motivation

During the placing of some blocks through the layout builder in the custom block, I noticed that show content preview checkbox alignment looks off with other submit buttons in the layout builder. the show content preview checkbox is not center aligned with the other buttons of the layout builder form. According to me, it should be centred-aligned with the other buttons too for a better user interface.

Steps to reproduce

  • Go to /admin/structure/types/manage/article/display/default/layout
  • Check the show content preview checkbox and its alignment

Please refer to the screenshot attached for reference.

Proposed resolution

Solution 1 -

Adding extra block margin in .form-type-boolean class to make the checkbox centered.

https://git.drupalcode.org/project/drupal/-/merge_requests/5573

Solution 2 -

Using align-items attribute on .form-actions class to make the checkbox centered.

https://git.drupalcode.org/project/drupal/-/merge_requests/6747

Remaining tasks

- Review
- Commit

User interface changes

Before

After

API changes

NA

Data model changes

NA

Release notes snippet

๐Ÿ› Bug report
Status

Fixed

Version

10.2 โœจ

Component
Oliveroย  โ†’

Last updated 35 minutes ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024