fix: pull user from locals and theme picker default

This commit is contained in:
Rotimi Best
2026-06-13 09:55:34 +01:00
parent 977176dbe2
commit 094683b551
3 changed files with 63 additions and 17 deletions
@@ -147,8 +147,10 @@
</button>
<div
style={`border-color: ${isCustomTheme ? $currentOrg.theme : 'dark:border-neutral-700'};`}
class="group relative h-auto w-fit cursor-pointer rounded-full border-2"
style={isCustomTheme ? `border-color: ${$currentOrg.theme};` : ''}
class="group relative h-auto w-fit cursor-pointer rounded-full border-2 {!isCustomTheme
? 'custom-theme-picker--empty'
: ''}"
>
<!-- plus icon positioned over the color picker -->
<div
@@ -232,4 +234,12 @@
:global(.color::before) {
display: none;
}
:global(.custom-theme-picker--empty .color) {
background-color: #e5e7eb !important;
}
:global(.dark .custom-theme-picker--empty .color) {
background-color: #374151 !important;
}
</style>