Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

Refine inner block margins #547

Closed
Closed

Description

@iamthomasbishop

Inner block paddings are a bit loose right now, let's make sure these are refined.

Block Anatomy

By default, every block type (including Title) contains internal padding of 12pt top/bottom and 16pt left/right.

Static

image

Focused

When a block is focused, we show the inline toolbar (44pt height) and collapse the margin-bottom, like so:

image

Currently

(proper paddings indicated with green, improper in red)

Android:

image

As you can see, left/right paddings on Android are 👍 , however top/bottom paddings are a bit off.

iOS:

ios

Punch-list

Both Platforms

  • Ensure padding-top is always 12 (static + focused)
  • Remove padding-bottom when block is focused

iOS

  • Ensure padding on left/right sides is 16pt

Activity

  1. added this to the Beta milestone on Feb 6, 2019
  2. iamthomasbishop commented on Feb 7, 2019

    @iamthomasbishop
    ContributorAuthor

    Previous, related issue: #393

  3. SergioEstevao commented on Feb 20, 2019

    @SergioEstevao
    Contributor

    @iamthomasbishop I update the margins here, one of the issue we where having is that the text container had a minimum height of 50px so when we had a single line on it we were still getting 50px of height to it making it look to have bigger margins. Here is a screenshot with some extra colors:
    simulator screen shot - iphone xr - 2019-02-20 at 11 05 29

  4. iamthomasbishop commented on Feb 20, 2019

    @iamthomasbishop
    ContributorAuthor

    Pulled this into Sketch to double check, and all of these margins look aligned perfectly.

    image

    Thanks for taking care of this @SergioEstevao !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Type] EnhancementImproves a current area of the editor

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions