0d3cb498a3
CI / Shell Format Check (push) Has been cancelled
CI / Check Ruby (3.4) (push) Has been cancelled
CI / CI Config (push) Has been cancelled
CI / Test on Node ${{ matrix.node }} and ${{ matrix.os }}${{ matrix.shard && format(' (shard {0}/3)', matrix.shard) || '' }} (push) Has been cancelled
CI / Build on Node ${{ matrix.node }} (push) Has been cancelled
CI / Style Check (push) Has been cancelled
CI / Generate Assets (push) Has been cancelled
CI / Check Python (3.14) (push) Has been cancelled
CI / Check Python (3.9) (push) Has been cancelled
CI / Build Docs (push) Has been cancelled
CI / Code Scan Action (push) Has been cancelled
CI / Site tests (push) Has been cancelled
CI / webui tests (push) Has been cancelled
CI / Run Integration Tests (push) Has been cancelled
CI / Run Smoke Tests (push) Has been cancelled
CI / Go Tests (push) Has been cancelled
CI / Share Test (push) Has been cancelled
CI / Redteam (Production API) (push) Has been cancelled
CI / Redteam (Staging API) (push) Has been cancelled
CI / GitHub Actions Lint (push) Has been cancelled
CI / Check Ruby (3.0) (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / build (push) Has been cancelled
release-please / publish-npm (push) Has been cancelled
release-please / publish-npm-backfill (push) Has been cancelled
release-please / docker (push) Has been cancelled
release-please / publish-code-scan-action (push) Has been cancelled
release-please / attest-code-scan-action (push) Has been cancelled
Deploy local.promptfoo.app / Deploy to Cloudflare Pages (push) Has been cancelled
Test and Publish Multi-arch Docker Image / test (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-amd64 platform:linux/amd64 runner:ubuntu-latest]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / build-docker-and-push-digests (map[digest-suffix:linux-arm64 platform:linux/arm64 runner:ubuntu-24.04-arm]) (push) Has been cancelled
Test and Publish Multi-arch Docker Image / merge-docker-digests (push) Has been cancelled
Test and Publish Multi-arch Docker Image / Attest Multi-arch Image (push) Has been cancelled
Validate Renovate Config / Validate Renovate Configuration (push) Has been cancelled
333 lines
5.3 KiB
CSS
333 lines
5.3 KiB
CSS
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 80vh;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
background-color: #ffffff;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
html[data-theme='dark'] .container {
|
|
background-color: #18181b;
|
|
}
|
|
|
|
.header {
|
|
padding: 24px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
html[data-theme='dark'] .header {
|
|
border-bottom-color: #27272a;
|
|
}
|
|
|
|
.header h3 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
html[data-theme='dark'] .header h3 {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.messageRow {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.justifyStart {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.justifyEnd {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.message {
|
|
padding: 12px 16px;
|
|
border-radius: 12px;
|
|
max-width: 70%;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.aiMessage {
|
|
background-color: #f1f1f1;
|
|
color: black;
|
|
}
|
|
|
|
html[data-theme='dark'] .aiMessage {
|
|
background-color: #27272a;
|
|
color: white;
|
|
}
|
|
|
|
.userMessage {
|
|
background-color: #18181b;
|
|
color: white;
|
|
}
|
|
|
|
html[data-theme='dark'] .userMessage {
|
|
background-color: #3f3f46;
|
|
}
|
|
|
|
.avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background-color: #f1f1f1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
color: #18181b;
|
|
}
|
|
|
|
html[data-theme='dark'] .avatar {
|
|
background-color: #27272a;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.inputContainer {
|
|
padding: 24px;
|
|
border-top: 1px solid #f0f0f0;
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
html[data-theme='dark'] .inputContainer {
|
|
border-top-color: #27272a;
|
|
}
|
|
|
|
.inputWrapper {
|
|
position: relative;
|
|
flex: 1;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 8px;
|
|
font-size: 16px;
|
|
outline: none;
|
|
background-color: #ffffff;
|
|
}
|
|
|
|
html[data-theme='dark'] .input {
|
|
background-color: #27272a;
|
|
border-color: #3f3f46;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.input::placeholder {
|
|
color: #a1a1aa;
|
|
}
|
|
|
|
html[data-theme='dark'] .input::placeholder {
|
|
color: #71717a;
|
|
}
|
|
|
|
.commandPalette {
|
|
position: absolute;
|
|
bottom: calc(100% + 8px);
|
|
left: 0;
|
|
right: 0;
|
|
background-color: #ffffff;
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
overflow: hidden;
|
|
z-index: 10;
|
|
}
|
|
|
|
html[data-theme='dark'] .commandPalette {
|
|
background-color: #27272a;
|
|
border-color: #3f3f46;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.commandItem {
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.commandItem:hover {
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
html[data-theme='dark'] .commandItem:hover {
|
|
background-color: #3f3f46;
|
|
}
|
|
|
|
.selectedCommand {
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
html[data-theme='dark'] .selectedCommand {
|
|
background-color: #3f3f46;
|
|
}
|
|
|
|
.commandLabel {
|
|
font-weight: 500;
|
|
color: #18181b;
|
|
}
|
|
|
|
html[data-theme='dark'] .commandLabel {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.commandDescription {
|
|
font-size: 14px;
|
|
color: #71717a;
|
|
}
|
|
|
|
html[data-theme='dark'] .commandDescription {
|
|
color: #a1a1aa;
|
|
}
|
|
|
|
.sendButton {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
background-color: #18181b;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
html[data-theme='dark'] .sendButton {
|
|
background-color: #3f3f46;
|
|
}
|
|
|
|
.sendButton:hover {
|
|
background-color: #27272a;
|
|
}
|
|
|
|
html[data-theme='dark'] .sendButton:hover {
|
|
background-color: #52525b;
|
|
}
|
|
|
|
.spinner {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.suggestionCards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 16px;
|
|
padding: 16px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.suggestionCard {
|
|
background-color: #ffffff;
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
html[data-theme='dark'] .suggestionCard {
|
|
background-color: #27272a;
|
|
border-color: #3f3f46;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.suggestionCard:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
border-color: #d4d4d8;
|
|
}
|
|
|
|
html[data-theme='dark'] .suggestionCard:hover {
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
border-color: #52525b;
|
|
}
|
|
|
|
.suggestionCard h4 {
|
|
margin: 0 0 8px 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #18181b;
|
|
}
|
|
|
|
html[data-theme='dark'] .suggestionCard h4 {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.suggestionCard p {
|
|
margin: 0 0 12px 0;
|
|
font-size: 14px;
|
|
color: #52525b;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
html[data-theme='dark'] .suggestionCard p {
|
|
color: #a1a1aa;
|
|
}
|
|
|
|
.commandTag {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
background-color: #f4f4f5;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: #71717a;
|
|
}
|
|
|
|
html[data-theme='dark'] .commandTag {
|
|
background-color: #3f3f46;
|
|
color: #d4d4d8;
|
|
}
|
|
|
|
.unsafeMessage {
|
|
background-color: #fee2e2;
|
|
border: 1px solid #fecaca;
|
|
}
|
|
|
|
html[data-theme='dark'] .unsafeMessage {
|
|
background-color: #7f1d1d;
|
|
border-color: #991b1b;
|
|
}
|
|
|
|
.unsafeResponse {
|
|
background-color: #fee2e2;
|
|
color: #ef4444;
|
|
}
|
|
|
|
html[data-theme='dark'] .unsafeResponse {
|
|
background-color: #7f1d1d;
|
|
color: #fca5a5;
|
|
}
|