mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
fix(vscode): absolutely position notification bar to not push content down
This commit is contained in:
@@ -55,11 +55,13 @@ export const ChatView: Component<ChatViewProps> = (props) => {
|
||||
return (
|
||||
<div class="chat-view">
|
||||
<TaskHeader />
|
||||
<Show when={!id()}>
|
||||
<KiloNotifications />
|
||||
</Show>
|
||||
<div class="chat-messages">
|
||||
<MessageList onSelectSession={props.onSelectSession} />
|
||||
<div class="chat-messages-wrapper">
|
||||
<Show when={!id()}>
|
||||
<KiloNotifications />
|
||||
</Show>
|
||||
<div class="chat-messages">
|
||||
<MessageList onSelectSession={props.onSelectSession} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Show when={!props.readonly}>
|
||||
|
||||
@@ -14,12 +14,19 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.chat-messages {
|
||||
.chat-messages-wrapper {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.chat-messages {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.chat-input {
|
||||
flex-shrink: 0;
|
||||
border-top: 1px solid var(--vscode-panel-border);
|
||||
@@ -706,8 +713,11 @@
|
||||
============================================ */
|
||||
|
||||
.kilo-notifications {
|
||||
flex-shrink: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-bottom: 1px solid var(--vscode-panel-border);
|
||||
|
||||
Reference in New Issue
Block a user