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

Created on 28 November 2023, 5 months ago
Updated 3 April 2024, 10 days 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 about 18 hours 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 : some issue and comment data are missing.

Production build https://api.contrib.social 0.62.1