diff --git a/public/css/index-tailwind-output.css b/public/css/index-tailwind-output.css index ae6831697..6f99ba039 100644 --- a/public/css/index-tailwind-output.css +++ b/public/css/index-tailwind-output.css @@ -1054,6 +1054,11 @@ video { height: 8rem; } +.h-min { + height: -webkit-min-content; + height: min-content; +} + .h-8 { height: 2rem; } @@ -1341,10 +1346,6 @@ video { align-items: center; } -.items-baseline { - align-items: baseline; -} - .items-stretch { align-items: stretch; } @@ -2447,7 +2448,6 @@ select:hover { .subtle { /* For all information that is not important for 99% of the users */ color: #999; - font-size: medium; font-weight: normal; } diff --git a/src/Logic/Osm/OsmPreferences.ts b/src/Logic/Osm/OsmPreferences.ts index cb009c074..8fee125fb 100644 --- a/src/Logic/Osm/OsmPreferences.ts +++ b/src/Logic/Osm/OsmPreferences.ts @@ -72,7 +72,7 @@ export class OsmPreferences { let i = 0 while (str !== "") { if (str === undefined || str === "undefined") { - throw "Long pref became undefined?" + throw "Got 'undefined' or a literal string containing 'undefined' for a long preference with name "+key } if (i > 100) { throw "This long preference is getting very long... " diff --git a/src/UI/BigComponents/ThemeButton.svelte b/src/UI/BigComponents/ThemeButton.svelte index cc8c5d772..cc77bba14 100644 --- a/src/UI/BigComponents/ThemeButton.svelte +++ b/src/UI/BigComponents/ThemeButton.svelte @@ -8,13 +8,26 @@ import Tr from "../Base/Tr.svelte" import SubtleLink from "../Base/SubtleLink.svelte" import Translations from "../i18n/Translations" + import { LocalStorageSource } from "../../Logic/Web/LocalStorageSource" export let theme: LayoutInformation export let isCustom: boolean = false export let userDetails: UIEventSource export let state: { layoutToUse?: { id: string }; osmConnection: OsmConnection } export let selected: boolean = false + + let unlockedPersonal = LocalStorageSource.GetParsed("unlocked_personal_theme", false) + userDetails.addCallbackAndRunD(userDetails => { + if(!userDetails.loggedIn){ + return + } + if(userDetails.csCount > Constants.userJourney.personalLayoutUnlock){ + unlockedPersonal.setData(true) + } + return true + }) + $: title = new Translation( theme.title, !isCustom && !theme.mustHaveLanguage ? "themes:" + theme.id + ".title" : undefined @@ -72,7 +85,7 @@ let href = createUrl(theme, isCustom, state) -{#if theme.id !== personal.id || $userDetails.csCount > Constants.userJourney.personalLayoutUnlock} +{#if theme.id !== personal.id || $unlockedPersonal} diff --git a/src/UI/Reviews/AllReviews.svelte b/src/UI/Reviews/AllReviews.svelte index 15695689f..75d5ec63c 100644 --- a/src/UI/Reviews/AllReviews.svelte +++ b/src/UI/Reviews/AllReviews.svelte @@ -40,7 +40,7 @@ {/if}
- - + +
diff --git a/src/index.css b/src/index.css index 028a66112..d1a2f0323 100644 --- a/src/index.css +++ b/src/index.css @@ -402,7 +402,6 @@ select:hover { .subtle { /* For all information that is not important for 99% of the users */ color: #999; - font-size: medium; font-weight: normal; }