mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix expanded command
This commit is contained in:
+2
-2
@@ -274,7 +274,7 @@ class LineOpenAI extends React.Component<{screen : LineContainerModel, line : Li
|
||||
}
|
||||
return (
|
||||
<div className="openai-message">
|
||||
<span className="openai-role">[user]</span>
|
||||
<span className="openai-role openai-role-user">[user]</span>
|
||||
<div className="openai-content">{cmdStr}</div>
|
||||
</div>
|
||||
);
|
||||
@@ -284,7 +284,7 @@ class LineOpenAI extends React.Component<{screen : LineContainerModel, line : Li
|
||||
let output = "...\nhello\nmore";
|
||||
return (
|
||||
<div className="openai-message">
|
||||
<div className="openai-role">[assistant]</div>
|
||||
<div className="openai-role openai-role-assistant">[assistant]</div>
|
||||
<div className="openai-content">{output}</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
+10
-2
@@ -45,11 +45,15 @@
|
||||
justify-content: flex-start;
|
||||
|
||||
.openai-role {
|
||||
color: @term-green;
|
||||
color: @term-bright-green;
|
||||
font-weight: bold;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.openai-role.openai-role-assistant {
|
||||
color: @term-bright-white;
|
||||
}
|
||||
|
||||
.openai-content {
|
||||
white-space: pre;
|
||||
color: white;
|
||||
@@ -73,6 +77,10 @@
|
||||
height: 36px;
|
||||
width: 100%;
|
||||
|
||||
&.is-expanded {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.line-icon {
|
||||
display: block;
|
||||
visibility: hidden;
|
||||
@@ -438,7 +446,7 @@
|
||||
margin-top: 2px;
|
||||
padding-left: 6px;
|
||||
overflow-y: auto;
|
||||
max-height: 54px;
|
||||
max-height: 60px;
|
||||
border-left: 2px solid #333;
|
||||
margin-left: 3px;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user