ballerina-dev-website icon indicating copy to clipboard operation
ballerina-dev-website copied to clipboard

Remove the empty line at the top of BBE code snippets and files

Open praneesha opened this issue 2 years ago • 3 comments

Description

Need to remove the empty line at the top of BBE code snippets as shown below.

Screenshot 2022-09-05 at 22 16 44

We need not keep a new line for the button panel or the copy option of code snippets. For example, see https://play.kotlinlang.org/byExample/01_introduction/04_Null%20Safety.

Related website/documentation area

Add/Uncomment the relevant area label out of the following.

Area/BBEs

Describe the problem(s)

A detailed description of the purpose of this improvement.

Describe your solution(s)

A detailed description of how this improvement will solve the problem described above.

Related issue(s) (optional)

Any related issues such as sub tasks and issues reported in other repositories (e.g., component repositories), similar problems, etc.

Suggested label(s) (optional)

Optional comma-separated list of suggested labels. Non committers can’t assign labels to issues, and thereby, this will help issue creators who are not a committer to suggest possible labels.

Suggested assignee(s) (optional)

Optional comma-separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, and thereby, this will help issue creators who are not a committer to suggest possible assignees.

praneesha avatar Sep 05 '22 16:09 praneesha

@praneesha that is not an empty line. The copy & github buttons are loaded there in a separate div above the code. We cannot load the buttons parallelly as it might overlap the code.

sm1990 avatar Sep 07 '22 11:09 sm1990

@sm1990 - Can we have the copy and edit icons aligned with the first line of the code as shown below?

Screenshot 2022-09-07 at 21 46 04

praneesha avatar Sep 07 '22 16:09 praneesha

@praneesha if the 1st line is too long, the icons will overlap the code. In most cases, this might work on desktop view but will break on mobile view.

sm1990 avatar Sep 08 '22 03:09 sm1990

Closing as this is not a priority

anupama-pathirage avatar Aug 22 '24 18:08 anupama-pathirage