Commit 3b6d788991

3b6d7889918a859775ff13757eb6a13f92b9165a

parent: 9846921737

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-06-27 06:33 UTC

ui tweak

Layout: unified · split

docs/.vitepress/theme/components/Search.vue +7 −14
@@ -2073,7 +2073,7 @@ function onMouseMove(e: MouseEvent) {
20732073 title="Clear all history"
20742074 @click.stop="searchHistory = []"
20752075 >
2076 <X :size="14" stroke-width="1.5" />
2076 <X :size="16" stroke-width="1.25" />
20772077 </button>
20782078 </div>
20792079 <ul class="history-items">
@@ -2111,7 +2111,7 @@ function onMouseMove(e: MouseEvent) {
21112111 :title="'Remove \'' + entry.query + '\' from history'"
21122112 @click.stop="removeFromHistory(index)"
21132113 >
2114 <X :size="14" stroke-width="1.5" />
2114 <X :size="16" stroke-width="1.25" />
21152115 </button>
21162116 </li>
21172117 </ul>
@@ -3525,11 +3525,13 @@ svg {
35253525 background: transparent;
35263526 color: var(--vp-c-text-3);
35273527 cursor: pointer;
3528 opacity: 0.7;
35283529 transition: color 0.15s;
35293530}
35303531
35313532.history-clear-all:hover {
35323533 color: var(--vp-c-text-1);
3534 opacity: 1;
35333535}
35343536
35353537.history-items {
@@ -3623,21 +3625,12 @@ svg {
36233625 background: transparent;
36243626 color: var(--vp-c-text-3);
36253627 cursor: pointer;
3626 opacity: 0;
3627 transition: opacity 0.15s, color 0.15s;
3628}
3629
3630.history-item:hover .history-remove {
3631 opacity: 1;
3628 opacity: 0.7;
3629 transition: color 0.15s;
36323630}
36333631
36343632.history-remove:hover {
36353633 color: var(--vp-c-text-1);
3636}
3637
3638@media (any-pointer: coarse) {
3639 .history-remove {
3640 opacity: 1;
3641 }
3634 opacity: 1;
36423635}
36433636</style>
\ No newline at end of file