mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
✨ Feature(custom): prevent click action if favorite picbed is already current default picbed
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
{{ t('pages.upload.dragFileToHere') }}
|
||||
</h3>
|
||||
<p class="upload-subtitle">
|
||||
{{ t('pages.upload.clickToUpload') }}
|
||||
{{ ' ' }}
|
||||
</p>
|
||||
<div class="upload-formats">
|
||||
<span class="format-label">{{ t('pages.upload.uploadHint') }}</span>
|
||||
@@ -971,6 +971,9 @@ function handleBadgeClick(picbedType: IFavoritePicbedItem) {
|
||||
if (longPressedBadge.value === picbedType.id) {
|
||||
return
|
||||
}
|
||||
if (isCurrentPicbed(picbedType)) {
|
||||
return
|
||||
}
|
||||
switchToPicbed(picbedType)
|
||||
}
|
||||
|
||||
|
||||
@@ -164,6 +164,7 @@ html, body {
|
||||
|
||||
.picbed-badge.is-active {
|
||||
border-color: var(--color-accent);
|
||||
border-width: 0.1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user