Merge branch 'fixes-roundup4' into shigusegubu-themes3
This commit is contained in:
commit
4dbb275c48
8 changed files with 54 additions and 27 deletions
0
changelog.d/roundup4.skip
Normal file
0
changelog.d/roundup4.skip
Normal file
|
@ -498,8 +498,6 @@ nav {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
||||||
--shadow: none;
|
|
||||||
|
|
||||||
&.-link {
|
&.-link {
|
||||||
/* stylelint-disable-next-line declaration-no-important */
|
/* stylelint-disable-next-line declaration-no-important */
|
||||||
color: var(--link) !important;
|
color: var(--link) !important;
|
||||||
|
@ -1096,3 +1094,8 @@ option {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@property --shadow {
|
||||||
|
syntax: "*";
|
||||||
|
inherits: false;
|
||||||
|
}
|
||||||
|
|
|
@ -85,6 +85,8 @@ export default {
|
||||||
width: 1.2em;
|
width: 1.2em;
|
||||||
height: 1.2em;
|
height: 1.2em;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|
||||||
|
--_shadow: var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
&-indicator::before {
|
&-indicator::before {
|
||||||
|
@ -96,7 +98,7 @@ export default {
|
||||||
width: 1.1em;
|
width: 1.1em;
|
||||||
height: 1.1em;
|
height: 1.1em;
|
||||||
border-radius: var(--roundness);
|
border-radius: var(--roundness);
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--_shadow);
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -363,6 +363,12 @@ const PostStatusForm = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
safeToSaveDraft () {
|
safeToSaveDraft () {
|
||||||
|
console.log('safe', (
|
||||||
|
this.newStatus.status ||
|
||||||
|
this.newStatus.spoilerText ||
|
||||||
|
this.newStatus.files?.length ||
|
||||||
|
this.newStatus.hasPoll
|
||||||
|
) && this.saveable)
|
||||||
return (
|
return (
|
||||||
this.newStatus.status ||
|
this.newStatus.status ||
|
||||||
this.newStatus.spoilerText ||
|
this.newStatus.spoilerText ||
|
||||||
|
|
|
@ -334,22 +334,26 @@
|
||||||
class="dropdown-menu"
|
class="dropdown-menu"
|
||||||
role="menu"
|
role="menu"
|
||||||
>
|
>
|
||||||
<button
|
<div
|
||||||
v-if="!hideDraft || !disableDraft"
|
|
||||||
class="menu-item dropdown-item"
|
class="menu-item dropdown-item"
|
||||||
role="menu"
|
|
||||||
:disabled="!safeToSaveDraft && saveable"
|
|
||||||
:class="{ disabled: !safeToSaveDraft }"
|
:class="{ disabled: !safeToSaveDraft }"
|
||||||
@click.prevent="saveDraft"
|
|
||||||
@click="close"
|
|
||||||
>
|
>
|
||||||
<template v-if="closeable">
|
<button
|
||||||
{{ $t('post_status.save_to_drafts_and_close_button') }}
|
v-if="!hideDraft || !disableDraft"
|
||||||
</template>
|
class="main-button"
|
||||||
<template v-else>
|
role="menu"
|
||||||
{{ $t('post_status.save_to_drafts_button') }}
|
:disabled="!safeToSaveDraft"
|
||||||
</template>
|
@click.prevent="saveDraft"
|
||||||
</button>
|
@click="close"
|
||||||
|
>
|
||||||
|
<template v-if="closeable">
|
||||||
|
{{ $t('post_status.save_to_drafts_and_close_button') }}
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ $t('post_status.save_to_drafts_button') }}
|
||||||
|
</template>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
|
|
@ -269,14 +269,17 @@
|
||||||
{{ $t('settings.image_compression') }}
|
{{ $t('settings.image_compression') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<ul class="setting-list suboptions">
|
||||||
<BooleanSetting
|
<li>
|
||||||
path="alwaysUseJpeg"
|
<BooleanSetting
|
||||||
expert="1"
|
path="alwaysUseJpeg"
|
||||||
>
|
expert="1"
|
||||||
{{ $t('settings.always_use_jpeg') }}
|
parent-path="imageCompression"
|
||||||
</BooleanSetting>
|
>
|
||||||
</li>
|
{{ $t('settings.always_use_jpeg') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<li>
|
<li>
|
||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
path="useContainFit"
|
path="useContainFit"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
.panel {
|
.panel {
|
||||||
--__panel-background: var(--background);
|
--__panel-background: var(--background);
|
||||||
--__panel-backdrop-filter: var(--backdrop-filter);
|
--__panel-backdrop-filter: var(--backdrop-filter);
|
||||||
|
--_shadow: var(--shadow);
|
||||||
|
|
||||||
.tab-switcher .tabs {
|
.tab-switcher .tabs {
|
||||||
background: var(--__panel-background);
|
background: var(--__panel-background);
|
||||||
|
@ -29,7 +30,7 @@
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--_shadow);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,11 +155,13 @@
|
||||||
linear-gradient(to bottom, var(--background), var(--background)),
|
linear-gradient(to bottom, var(--background), var(--background)),
|
||||||
linear-gradient(to bottom, var(--__panel-background), var(--__panel-background));
|
linear-gradient(to bottom, var(--__panel-background), var(--__panel-background));
|
||||||
|
|
||||||
|
--_shadow: var(--shadow);
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
z-index: -2;
|
z-index: -2;
|
||||||
border-radius: var(--roundness) var(--roundness) 0 0;
|
border-radius: var(--roundness) var(--roundness) 0 0;
|
||||||
box-shadow: var(--shadow);
|
box-shadow: var(--_shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.-flexible-height) {
|
&:not(.-flexible-height) {
|
||||||
|
|
|
@ -567,7 +567,13 @@ export const init = ({
|
||||||
if (!liteMode && combination.state.indexOf('hover') >= 0) {
|
if (!liteMode && combination.state.indexOf('hover') >= 0) {
|
||||||
combination.lazy = true
|
combination.lazy = true
|
||||||
}
|
}
|
||||||
if (extraCompileComponents.has(component.name)) {
|
|
||||||
|
if (
|
||||||
|
parent?.component !== 'Root' &&
|
||||||
|
!virtualComponents.has(component.name) &&
|
||||||
|
!transparentComponents.has(component.name) &&
|
||||||
|
extraCompileComponents.has(component.name)
|
||||||
|
) {
|
||||||
combination.lazy = true
|
combination.lazy = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue