Skip to content

Commit

Permalink
fix: 修复分享链接长度限制问题,修复部分BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
hsingyin committed Nov 10, 2024
1 parent a02194a commit 6bd43bb
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 30 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.290",
"version": "2.14.291",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
12 changes: 9 additions & 3 deletions src/components/FileListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
</div>
<div class="sub-item-content">
<div class="sub-item-title-wrapper">

<h3 v-if="!appearanceSetting.isSimpleMode" class="sub-item-title">
{{ displayName || name }}
</h3>
Expand All @@ -51,6 +50,14 @@
style="position: relative"
:style="{ top: appearanceSetting.isSimpleMode ? '8px' : '0' }"
>
<!-- 预览 -->
<button
v-if="!appearanceSetting.isShowIcon"
class="compare-sub-link"
@click.stop="previewFile"
>
<font-awesome-icon icon="fa-solid fa-eye" />
</button>
<button
v-if="shareBtnVisible"
class="share-sub-link"
Expand All @@ -61,8 +68,6 @@
<button class="copy-sub-link" @click.stop="onClickCopyLink">
<font-awesome-icon icon="fa-solid fa-clone" />
</button>


<!-- 编辑 -->
<button
v-if="!appearanceSetting.isSimpleMode"
Expand Down Expand Up @@ -469,6 +474,7 @@
font-size: 16px;
color: var(--primary-text-color);
}
.compare-sub-link,
.share-sub-link,
.copy-sub-link,
.refresh-sub-flow {
Expand Down
47 changes: 23 additions & 24 deletions src/views/settings/moreSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,29 @@
/>
</template>
</nut-cell>

<nut-cell :title="$t(`moreSettingPage.isSimpleReicon`)" class="cell-item">
<template v-slot:link>
<nut-switch
class="my-switch"
v-model="awSimpleReicon"
size="mini"
@change="setSimpleReicon"
/>
</template>
</nut-cell>
<nut-cell
:title="$t(`moreSettingPage.isSimpleShowRemarks`)"
class="cell-item"
>
<template v-slot:link>
<nut-switch
class="my-switch"
v-model="awSimpleShowRemark"
size="mini"
@change="setSimpleShowRemark"
/>
</template>
</nut-cell>
<nut-cell :title="$t(`moreSettingPage.islr`)" class="cell-item">
<template v-slot:link>
<nut-switch
Expand Down Expand Up @@ -69,29 +91,6 @@
</template>
</nut-cell>

<nut-cell :title="$t(`moreSettingPage.isSimpleReicon`)" class="cell-item">
<template v-slot:link>
<nut-switch
class="my-switch"
v-model="awSimpleReicon"
size="mini"
@change="setSimpleReicon"
/>
</template>
</nut-cell>
<nut-cell
:title="$t(`moreSettingPage.isSimpleShowRemarks`)"
class="cell-item"
>
<template v-slot:link>
<nut-switch
class="my-switch"
v-model="awSimpleShowRemark"
size="mini"
@change="setSimpleShowRemark"
/>
</template>
</nut-cell>
<nut-cell :title="$t(`moreSettingPage.showFloatingRefreshButton`)" class="cell-item">
<template v-slot:link>
<nut-switch
Expand Down
2 changes: 0 additions & 2 deletions src/views/share/SharePopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
input-align="left"
rows="3"
:autosize="{ maxHeight: 140 }"
max-length="100"
/>
</nut-form-item>
<div v-if="shareUrlVisible" class="qrcode-wrapper">
Expand Down Expand Up @@ -231,7 +230,6 @@
input-align="left"
rows="3"
:autosize="{ maxHeight: 140 }"
max-length="100"
/>
</nut-form-item>
<nut-form-item
Expand Down

0 comments on commit 6bd43bb

Please sign in to comment.