Skip to content

Commit

Permalink
Update Copy Button
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepChef committed Nov 23, 2024
1 parent 7d14311 commit bd5854f
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 31 deletions.
52 changes: 26 additions & 26 deletions docs/assets/index-vHVaBdQA.js → docs/assets/index-CDNxQT5U.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
return this._attachShadow({ mode: "open" });
};
</script>
<script type="module" crossorigin src="./assets/index-vHVaBdQA.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BgJwclCu.css">
<script type="module" crossorigin src="./assets/index-CDNxQT5U.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CVSA6z77.css">
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/assets/ImMainView.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,7 @@
mdui-text-field::part(label) {
background-color: transparent;
}

mdui-text-field::part(input) {
scrollbar-width: none;
}
22 changes: 21 additions & 1 deletion src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ async function ProcessGo() {
}
}
function copyall() {
if (document.getElementById("OutputText").value == "") {
return;
}
document.getElementById("OutputText").select();
navigator.clipboard.writeText(window.getSelection().toString());
}
onMounted(() => {
ControlEnc();
});
Expand Down Expand Up @@ -295,7 +303,19 @@ onBeforeUnmount(() => {});
label="符文"
placeholder="回路末端的符文"
style="grid-area: 3; height: 120px; width: 360px"
></mdui-text-field>
>
</mdui-text-field>
<mdui-button-icon
icon="content_copy--rounded"
style="
position: absolute;
bottom: 95px;
right: 22px;
background: rgb(11 11 11 / 25%);
backdrop-filter: blur(2px);
"
@click="copyall"
></mdui-button-icon>
<Card
v-if="OutputMode == 'UINT8'"
id="FileCard2"
Expand Down

0 comments on commit bd5854f

Please sign in to comment.