Skip to content

blog: single line code blocks look imbalanced #2148

@chronark

Description

@chronark

Preliminary Checks

Is your feature request related to a problem? Please describe.

image
source: https://www.unkey.com/blog/fixing-serverless-with-a-vps

I guess it's cause the line is not vertically centered, but maybe we should just make everything items-center with the icons?

like:

const x = 1 [copybutton] [downloadbutton]

Describe the solution

For single line code blocks, we should show a much narrower block and have the buttons in line if possible

Describe alternatives you have considered (if any)

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

FeatureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions