Skip to content

Commit

Permalink
chore: 预览界面复制优化
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Feb 11, 2025
1 parent 2e060ca commit ca66485
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.332",
"version": "2.14.333",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
24 changes: 24 additions & 0 deletions src/assets/icons/copy-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/views/FilePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<header class="compare-page-header">
<template v-if="url">
<h1>
<span class="title">外部资源中使用, 请复制: </span>
<span class="title" @click="copyUrl">外部资源中使用, 请复制: </span>
<span class="displayName">
<font-awesome-icon class="copy" icon="fa-solid fa-clone" @click="copyUrl" />
<!-- <font-awesome-icon icon="fa-solid fa-angles-right" /> -->
Expand Down Expand Up @@ -281,6 +281,7 @@ const copyUrl = async () => {
width: 100vw;
.title {
white-space: nowrap;
cursor: pointer;
}
.displayName {
overflow: hidden;
Expand All @@ -289,6 +290,7 @@ const copyUrl = async () => {
max-width: 40vw;
.copy {
cursor: pointer;
font-size: 16px;
}
.url {
text-decoration: underline;
Expand Down

0 comments on commit ca66485

Please sign in to comment.