Skip to content

Commit

Permalink
fix: line-number and border color code block UI (janhq#4105)
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur authored Nov 25, 2024
1 parent 314cb03 commit 148a1e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const SimpleTextMessage: React.FC<ThreadMessage> = (props) => {
tagName: 'div',
properties: {
className:
'code-header bg-[hsla(var(--app-code-block))] flex justify-between items-center py-2 px-3 border-b border-[hsla(var(--app-border))] rounded-t-lg',
'code-header bg-[hsla(var(--app-code-block))] flex justify-between items-center py-2 px-3 code-header--border rounded-t-lg',
},
children: [
{
Expand Down
9 changes: 7 additions & 2 deletions web/styles/components/code-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,13 @@ span.code-line {
margin-right: 16px;
width: 1.2rem;
font-size: 12px;
color: hsla(var(--text-tertiary));
color: rgba($color: #fff, $alpha: 0.4);
text-align: right;

display: inline-block;
}

.code-header {
&--border {
border-bottom: 1px solid rgba($color: #fff, $alpha: 0.1);
}
}

0 comments on commit 148a1e5

Please sign in to comment.