💄 优化样式

This commit is contained in:
BTMuli
2023-06-30 21:29:54 +08:00
parent 622aca5a55
commit b83ff4674d
3 changed files with 21 additions and 10 deletions

View File

@@ -101,18 +101,21 @@ function getShareTitle() {
}
async function shareWiki() {
const div = document.querySelector(".hta-box") as HTMLDivElement;
const div = <HTMLDivElement>document.querySelector(".hta-tab-item");
const title = getShareTitle();
loadingTitle.value = "正在生成分享图";
loading.value = true;
await generateShareImg(title, div);
loading.value = false;
}
</script>
<style lang="css" scoped>
.hta-box {
width: 100%;
height: 100%;
max-height: calc(100vh - 30px);
padding: 10px;
box-sizing: border-box;
overflow: auto;
box-sizing: border-box;
border-radius: 5px;
box-shadow: 0 0 10px var(--common-shadow-4);
}