BiblioNexus-Foundation / scripture-editors

Monorepo for various Scripture editors
MIT License
1 stars 1 forks source link

Platform: Comment sidebar styling issues #124

Closed Sebastian-ubs closed 2 months ago

Sebastian-ubs commented 2 months ago

I identified 3 issues with the comment sidebar:

As can be seen from in scripture-editors codesandbox the <h2 class="CommentPlugin_CommentsPanel_Heading">Comments</h2> overflows the comment container. grafik

In Platform.Bible this causes a "right hand" overflow, that produces a vertical scroll bar: grafik

Which can also be seen in the codesandbox: grafik

It is fixed by removing width: 100% from .CommentPlugin_CommentsPanel_Heading

See pictures below.

.CommentPlugin_CommentsPanel_Heading should get

text-overflow: ellipsis; /* clip the header text */
padding: 16px /* have symetric padding in a 2^n grid value */
/* remove height: 34px; */
/* you may or may not want to add line-height: 16px, as the font itself seems to create some additional whitespace */

Now also remove the top: 45px from .CommentPlugin_CommentsPanel_List

Before: grafik

After: grafik

position: absolute should be removed from .CommentPlugin_CommentsPanel_Heading

with position: absolute grafik

when removing position: absolute grafik

Removing it seems not to have a negative impact on the comment list grafik