fix: show wallpaper on mobile
This commit is contained in:
parent
b535d57f05
commit
1b9176a55b
1 changed files with 4 additions and 1 deletions
|
@ -292,7 +292,8 @@ os.api("meta", { detail: true }).then((res) => {
|
||||||
meta = res;
|
meta = res;
|
||||||
isLong = meta.description && meta.description.length > 500;
|
isLong = meta.description && meta.description.length > 500;
|
||||||
wallpaper =
|
wallpaper =
|
||||||
meta.backgroundImageUrl && props.sticky
|
(!props.sticky && !meta.bannerUrl) ||
|
||||||
|
(meta.backgroundImageUrl && props.sticky)
|
||||||
? `url(${meta.backgroundImageUrl})`
|
? `url(${meta.backgroundImageUrl})`
|
||||||
: meta.themeColor ?? accentColor;
|
: meta.themeColor ?? accentColor;
|
||||||
// wallpaper = meta.backgroundImageUrl ? null : meta.themeColor ?? accentColor;
|
// wallpaper = meta.backgroundImageUrl ? null : meta.themeColor ?? accentColor;
|
||||||
|
@ -437,11 +438,13 @@ function showMenu(ev) {
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
box-shadow: 0 12px 24px rgba(0,0,0,0.2);
|
||||||
// &.wallpaper {
|
// &.wallpaper {
|
||||||
// flex-grow: 0;
|
// flex-grow: 0;
|
||||||
// border-radius: var(--radius);
|
// border-radius: var(--radius);
|
||||||
// }
|
// }
|
||||||
@media (max-width: 1100px) {
|
@media (max-width: 1100px) {
|
||||||
|
max-width: 600px;
|
||||||
&:first-child {
|
&:first-child {
|
||||||
margin-top: 140px;
|
margin-top: 140px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue