fix: line-number and border color code block UI (#4105)
This commit is contained in:
parent
314cb03693
commit
148a1e5d32
@ -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: [
|
||||
{
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user