mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
107 lines
1.7 KiB
CSS
107 lines
1.7 KiB
CSS
/*
|
|
|
|
This CSS file will be included with your plugin, and
|
|
available in the app when your plugin is enabled.
|
|
|
|
If your plugin does not need CSS, delete this file.
|
|
|
|
*/
|
|
|
|
.chat-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden; /* Fix overflow and can't scroll up */
|
|
}
|
|
|
|
.bottom-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: flex-end;
|
|
width: 100%;
|
|
flex: 0 0 auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.chat-icons-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 8px 8px 0;
|
|
order: 1;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chat-input-container {
|
|
display: flex;
|
|
padding: 8px;
|
|
box-sizing: border-box;
|
|
flex-grow: 1;
|
|
width: 100%;
|
|
order: 2;
|
|
}
|
|
|
|
.chat-input-container textarea {
|
|
flex-grow: 1;
|
|
margin-right: 8px;
|
|
margin-bottom: 8px;
|
|
resize: vertical;
|
|
overflow: auto;
|
|
min-height: 60px;
|
|
max-height: 200px;
|
|
}
|
|
|
|
.chat-input-container button {
|
|
padding: 8px;
|
|
margin: 8px;
|
|
}
|
|
|
|
.chat-messages {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: flex-start;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
width: 100%;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
font-size: 14px;
|
|
box-sizing: border-box;
|
|
scroll-behavior: smooth;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.message {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
padding: 4px;
|
|
margin-bottom: 4px;
|
|
border-radius: 4px;
|
|
max-width: 90%;
|
|
}
|
|
|
|
.message-icon {
|
|
width: 24px;
|
|
margin-right: 8px;
|
|
color: var(--inline-title-color);
|
|
}
|
|
|
|
.message-content {
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.user-message {
|
|
align-self: flex-start;
|
|
width: 90%;
|
|
}
|
|
|
|
.bot-message {
|
|
align-self: flex-start;
|
|
width: 90%;
|
|
}
|
|
|