Skip to content

Commit

Permalink
fixes to discussable
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Jan 9, 2025
1 parent e618537 commit 23726b9
Show file tree
Hide file tree
Showing 10 changed files with 1,570 additions and 173 deletions.
180 changes: 180 additions & 0 deletions webapp/src/components/MessageList.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
.message-list-container {
flex: 1;
overflow-y: auto;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 1rem;
scroll-behavior: smooth;
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
perspective: inherit;
background-color: var(--theme-background, #ffffff);
color: var(--theme-text, #000000);
transition: background-color 0.3s ease, color 0.3s ease;
}

.message-list-container[data-testid] {
outline: none;
}

.message-list-container::-webkit-scrollbar {
width: 10px;
}

.message-list-container::-webkit-scrollbar-track {
background: var(--theme-background);
border-radius: 4px;
}

.message-list-container::-webkit-scrollbar-thumb {
background: var(--theme-primary);
border-radius: 4px;
border: 2px solid var(--theme-background);
}

.message-list-container::-webkit-scrollbar-thumb:hover {
background: var(--theme-primary-dark);
}

.message-content {
color: inherit;
background: transparent;
transition: color 0.3s ease, background-color 0.3s ease;
}

.message-content pre[class*="language-"],
.message-content code[class*="language-"] {
background: var(--theme-surface, #f5f5f5);
color: var(--theme-text, #000000);
font-family: var(--theme-code-font);
border: 1px solid var(--theme-border, #e0e0e0);
border-radius: 4px;
}

.message-content .href-link,
.message-content .play-button,
.message-content .regen-button,
.message-content .cancel-button,
.message-content .text-submit-button {
cursor: pointer;
user-select: none;
display: inline-block;
margin: 2px;
border-radius: 4px;
background-color: var(--theme-surface);
color: var(--theme-text);
transition: all var(--transition-duration) var(--transition-timing),
transform 0.2s ease-in-out;
}

.message-content .href-link:hover,
.message-content .play-button:hover,
.message-content .regen-button:hover,
.message-content .cancel-button:hover,
.message-content .text-submit-button:hover {
opacity: 0.8;
background-color: var(--theme-primary);
color: var(--theme-bg);
transform: translateY(-1px);
}

.message-content .referenced-message {
cursor: pointer;
padding: 4px;
margin: 4px 0;
border-left: 3px solid var(--theme-border);
transition: all 0.3s ease;
}

.message-content .referenced-message.expanded {
background-color: var(--theme-surface);
}

.message-item {
padding: 1rem;
border-radius: 12px;
max-width: 80%;
box-shadow: var(--theme-shadow-medium, 0 2px 4px rgba(0,0,0,0.1));
transform: translate3d(0, 0, 0);
transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
position: relative;
overflow: visible;
backface-visibility: hidden;
perspective: inherit;
border: 1px solid var(--theme-border, #e0e0e0);
}

.message-item:hover {
transform: translate3d(0, -3px, 0);
box-shadow: var(--theme-shadow-large, 0 4px 8px rgba(0,0,0,0.15));
}

.message-item.user {
align-self: flex-end;
background-color: var(--theme-primary, #007AFF);
color: var(--theme-text-on-primary, #ffffff);
}

.message-item.system {
align-self: flex-start;
background-color: var(--theme-secondary, #5856D6);
color: var(--theme-text-on-secondary, #ffffff);
}

.message-item.error {
align-self: flex-start;
background: linear-gradient(135deg, var(--theme-error, #FF3B30), var(--theme-warning, #FF9500));
color: var(--theme-text-on-error, #ffffff);
}

.message-item.loading,
.message-item.assistant,
.message-item.reference {
align-self: flex-start;
background-color: var(--theme-surface, #f5f5f5);
color: var(--theme-text, #000000);
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Reply form styling */
.reply-form {
display: flex;
gap: 8px;
margin-top: 8px;
padding: 8px;
background: var(--theme-surface-light, #fafafa);
border-radius: 8px;
}
.reply-input {
flex: 1;
min-height: 36px;
padding: 8px 12px;
border: 1px solid var(--theme-border, #e0e0e0);
border-radius: 4px;
background: var(--theme-background, #ffffff);
color: var(--theme-text, #000000);
font-family: inherit;
resize: vertical;
transition: border-color 0.2s ease;
}
.reply-input:focus {
outline: none;
border-color: var(--theme-primary, #007AFF);
}
.text-submit-button {
padding: 8px 16px;
background-color: var(--theme-primary, #007AFF);
color: var(--theme-text-on-primary, #ffffff);
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: background-color 0.2s ease, transform 0.1s ease;
}
.text-submit-button:hover {
background-color: var(--theme-primary-dark, #0056b3);
transform: translateY(-1px);
}
.text-submit-button:active {
transform: translateY(0);
}
Loading

0 comments on commit 23726b9

Please sign in to comment.