fix: fixes for AI chat
This commit is contained in:
124
priv/ui/app.css
124
priv/ui/app.css
@@ -3561,14 +3561,22 @@ button svg * {
|
||||
|
||||
.chat-panel-title {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--vscode-foreground, inherit);
|
||||
}
|
||||
|
||||
.chat-panel-title-main {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chat-panel-header {
|
||||
position: relative;
|
||||
padding: 12px 16px;
|
||||
@@ -5133,14 +5141,22 @@ button svg * {
|
||||
|
||||
.chat-panel-title {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--vscode-foreground, inherit);
|
||||
}
|
||||
|
||||
.chat-panel-title-main {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chat-panel-header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -5160,9 +5176,29 @@ button svg * {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex: 0 1 auto;
|
||||
max-width: min(40vw, 240px);
|
||||
padding: 4px 8px;
|
||||
font-size: 12px;
|
||||
color: var(--vscode-descriptionForeground, inherit);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chat-model-selector-inline {
|
||||
min-width: 0;
|
||||
background-color: var(--vscode-input-background, transparent);
|
||||
}
|
||||
|
||||
.chat-model-selector-inline span:first-child {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.chat-model-selector-wrap {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
min-width: 0;
|
||||
flex: 0 1 auto;
|
||||
}
|
||||
|
||||
.chat-model-selector-button:hover,
|
||||
@@ -5177,7 +5213,7 @@ button svg * {
|
||||
.chat-model-selector-menu {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
right: 16px;
|
||||
left: 0;
|
||||
min-width: 180px;
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
@@ -5318,6 +5354,13 @@ button svg * {
|
||||
}
|
||||
|
||||
.chat-message.user .chat-message-content {
|
||||
width: fit-content;
|
||||
min-width: 0;
|
||||
max-width: min(80%, 720px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
margin-left: auto;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@@ -5368,6 +5411,9 @@ button svg * {
|
||||
}
|
||||
|
||||
.chat-message.user .chat-message-text {
|
||||
width: fit-content;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
border-radius: 12px 12px 2px 12px;
|
||||
background-color: var(--vscode-button-background, var(--accent-color));
|
||||
color: var(--vscode-button-foreground, #ffffff);
|
||||
@@ -5377,6 +5423,74 @@ button svg * {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.chat-panel .chat-model-selector-button.chat-model-selector-inline {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
max-width: 240px;
|
||||
height: auto;
|
||||
flex: 0 1 auto;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid var(--vscode-input-border, var(--line, #3c3c3c));
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: var(--vscode-descriptionForeground, inherit);
|
||||
}
|
||||
|
||||
.chat-panel .chat-model-selector-caret {
|
||||
position: static;
|
||||
inset: auto;
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
height: auto;
|
||||
display: inline;
|
||||
flex: 0 0 auto;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
color: inherit;
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.chat-panel .chat-model-selector-menu {
|
||||
left: 0;
|
||||
right: auto;
|
||||
width: max-content;
|
||||
min-width: 180px;
|
||||
max-width: min(360px, calc(100vw - 48px));
|
||||
height: auto;
|
||||
padding: 6px;
|
||||
border: 1px solid var(--vscode-dropdown-border, var(--line, #3c3c3c));
|
||||
border-radius: 4px;
|
||||
background: var(--vscode-dropdown-background, var(--panel-1, #1e1e1e));
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.chat-panel .chat-message.user .chat-message-content {
|
||||
width: max-content;
|
||||
min-width: 0;
|
||||
max-width: min(72%, 720px);
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.chat-panel .chat-message.user .chat-message-text.chat-user-message-text {
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
padding: 6px 12px;
|
||||
line-height: 1.35;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.chat-message.streaming .chat-message-text {
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
|
||||
Reference in New Issue
Block a user