Compare commits

...

7 commits

Author SHA1 Message Date
Henry Jameson
4dbb275c48 Merge branch 'fixes-roundup4' into shigusegubu-themes3 2025-02-12 22:06:31 +02:00
Henry Jameson
89ba855e45 make JPEG conversion a suboption 2025-02-12 22:06:13 +02:00
Henry Jameson
3b2baa45d0 fix checkboxes 2025-02-12 22:00:37 +02:00
Henry Jameson
babe3697db increase load time to avoid glitchiness 2025-02-12 21:50:21 +02:00
Henry Jameson
c14f88e290 disable shadow inheritance 2025-02-12 21:26:05 +02:00
Henry Jameson
17d562b979 fix draft dropdown 2025-02-12 21:07:16 +02:00
Henry Jameson
2097192469 lack of changelog 2025-02-12 20:53:06 +02:00
8 changed files with 54 additions and 27 deletions

View file

View 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;
}

View file

@ -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;

View file

@ -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 ||

View file

@ -333,13 +333,16 @@
<div <div
class="dropdown-menu" class="dropdown-menu"
role="menu" role="menu"
>
<div
class="menu-item dropdown-item"
:class="{ disabled: !safeToSaveDraft }"
> >
<button <button
v-if="!hideDraft || !disableDraft" v-if="!hideDraft || !disableDraft"
class="menu-item dropdown-item" class="main-button"
role="menu" role="menu"
:disabled="!safeToSaveDraft && saveable" :disabled="!safeToSaveDraft"
:class="{ disabled: !safeToSaveDraft }"
@click.prevent="saveDraft" @click.prevent="saveDraft"
@click="close" @click="close"
> >
@ -351,6 +354,7 @@
</template> </template>
</button> </button>
</div> </div>
</div>
</template> </template>
</Popover> </Popover>
</div> </div>

View file

@ -269,14 +269,17 @@
{{ $t('settings.image_compression') }} {{ $t('settings.image_compression') }}
</BooleanSetting> </BooleanSetting>
</li> </li>
<ul class="setting-list suboptions">
<li> <li>
<BooleanSetting <BooleanSetting
path="alwaysUseJpeg" path="alwaysUseJpeg"
expert="1" expert="1"
parent-path="imageCompression"
> >
{{ $t('settings.always_use_jpeg') }} {{ $t('settings.always_use_jpeg') }}
</BooleanSetting> </BooleanSetting>
</li> </li>
</ul>
<li> <li>
<BooleanSetting <BooleanSetting
path="useContainFit" path="useContainFit"

View file

@ -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) {

View file

@ -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
} }