enhance: copy code block

1. search and store code lang instead of mode
2. select uses frontend.components.select instead of shui input + auto-complete
This commit is contained in:
Tienson Qin
2024-10-02 12:52:07 +08:00
parent 7d1d6f49da
commit deb3507bb0
10 changed files with 141 additions and 108 deletions

View File

@@ -951,8 +951,14 @@ html.is-mac {
@apply hidden;
}
> a.select-language {
@apply absolute right-1 top-1 bg-gray-02-alpha border rounded text-gray-11
select-none opacity-70 hover:opacity-90 z-[1] text-xs px-1.5;
> .code-block-actions {
@apply absolute right-1 top-1 select-none z-[1] text-xs;
button {
@apply !py-0 h-4 text-muted-foreground hover:text-foreground text-xs px-1;
}
svg {
width: 14px;
height: 14px;
}
}
}
}