mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-07 22:30:38 +08:00
style: improve AI search UI and add dark mode support
This commit is contained in:
@ -20,9 +20,8 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
Untitled
|
Untitled
|
||||||
|
|
||||||
.search-section {
|
.search-section {
|
||||||
max-width: 1200px;
|
max-width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0 1rem 2rem;
|
padding: 0 1rem 2rem;
|
||||||
}
|
}
|
||||||
@ -46,15 +45,17 @@ h1 {
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
|
margin: 0; /* Changed from auto to 0 to align left */
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input {
|
.search-input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 0.75rem 1rem;
|
padding: 0 0.875rem;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 1rem;
|
font-size: 0.9375rem;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
height: 40px; /* Explicit height */
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-input:focus {
|
.search-input:focus {
|
||||||
@ -62,14 +63,18 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-button {
|
.search-button {
|
||||||
padding: 0.75rem 2rem;
|
padding: 0 1.25rem;
|
||||||
background-color: #2196F3;
|
background-color: #2196F3;
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 1rem;
|
font-size: 0.875rem;
|
||||||
transition: background-color 0.2s;
|
transition: background-color 0.2s;
|
||||||
|
height: 40px; /* Match the height of search input */
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-button:hover {
|
.search-button:hover {
|
||||||
@ -128,9 +133,9 @@ h1 {
|
|||||||
|
|
||||||
.markdown-content {
|
.markdown-content {
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
color: #2c3e50;
|
color: var(--md-typeset-color);
|
||||||
background: #ffffff;
|
background: var(--md-default-bg-color);
|
||||||
border: 1px solid #e1e4e8;
|
border: 1px solid var(--md-default-fg-color--lightest);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
||||||
@ -145,9 +150,9 @@ h1 {
|
|||||||
left: 24px;
|
left: 24px;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
background: #ffffff;
|
background: var(--md-default-bg-color);
|
||||||
border-left: 1px solid #e1e4e8;
|
border-left: 1px solid var(--md-default-fg-color--lightest);
|
||||||
border-top: 1px solid #e1e4e8;
|
border-top: 1px solid var(--md-default-fg-color--lightest);
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,7 +170,8 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.markdown-content code {
|
.markdown-content code {
|
||||||
background: #f6f8fa;
|
background: var(--md-code-bg-color);
|
||||||
|
color: var(--md-code-fg-color);
|
||||||
padding: 0.2em 0.4em;
|
padding: 0.2em 0.4em;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
@ -173,7 +179,7 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.markdown-content pre {
|
.markdown-content pre {
|
||||||
background: #f6f8fa;
|
background: var(--md-code-bg-color);
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
@ -185,6 +191,11 @@ h1 {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="slate"] .markdown-content {
|
||||||
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/9.1.6/marked.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/9.1.6/marked.min.js"></script>
|
||||||
|
Reference in New Issue
Block a user