style: refine prompt history selection state
This commit is contained in:
@@ -240,30 +240,21 @@ onMounted(() => {
|
|||||||
|
|
||||||
.history-card {
|
.history-card {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.history-card.is-selected {
|
.history-card.is-selected {
|
||||||
--n-border-color: #18a058;
|
--n-color: #f7fffa;
|
||||||
border-color: #18a058;
|
box-shadow: 0 10px 24px rgba(24, 160, 88, 0.14);
|
||||||
box-shadow:
|
|
||||||
0 0 0 2px rgba(24, 160, 88, 0.35),
|
|
||||||
0 12px 26px rgba(24, 160, 88, 0.24);
|
|
||||||
transform: translateY(-1px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.history-card.is-selected::before {
|
.history-card.is-selected .history-main {
|
||||||
content: "";
|
background: #eefaf3;
|
||||||
position: absolute;
|
|
||||||
inset: 0 auto 0 0;
|
|
||||||
width: 4px;
|
|
||||||
background: #18a058;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.history-main {
|
.history-main {
|
||||||
padding: 10px 12px;
|
padding: 10px 12px;
|
||||||
|
transition: background-color 0.18s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.prompt-markdown {
|
.prompt-markdown {
|
||||||
@@ -310,6 +301,11 @@ onMounted(() => {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.history-card.is-selected .thumbnail {
|
||||||
|
border-top-color: #d8f1e2;
|
||||||
|
background: #f4fbf6;
|
||||||
|
}
|
||||||
|
|
||||||
.thumbnail iframe {
|
.thumbnail iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user