Quick fixes to lang plus mmap realtime
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
let newEventStartDate = $state("");
|
||||
let newEventEndDate = $state("");
|
||||
let newEventVenue = $state("");
|
||||
let newEventVenueAddress = $state("");
|
||||
let newEventColor = $state(data.org.default_event_color || "#00A3E0");
|
||||
let creating = $state(false);
|
||||
|
||||
@@ -111,6 +112,7 @@
|
||||
start_date: newEventStartDate || null,
|
||||
end_date: newEventEndDate || null,
|
||||
venue_name: newEventVenue.trim() || null,
|
||||
venue_address: newEventVenueAddress.trim() || null,
|
||||
color: newEventColor,
|
||||
created_by: userId,
|
||||
})
|
||||
@@ -154,6 +156,7 @@
|
||||
newEventStartDate = "";
|
||||
newEventEndDate = "";
|
||||
newEventVenue = "";
|
||||
newEventVenueAddress = "";
|
||||
newEventColor = data.org.default_event_color || "#00A3E0";
|
||||
}
|
||||
|
||||
@@ -331,12 +334,19 @@
|
||||
</div>
|
||||
|
||||
<!-- Venue -->
|
||||
<Input
|
||||
variant="compact"
|
||||
label={m.events_form_venue()}
|
||||
bind:value={newEventVenue}
|
||||
placeholder={m.events_form_venue_placeholder()}
|
||||
/>
|
||||
<div class="flex flex-col gap-2">
|
||||
<Input
|
||||
variant="compact"
|
||||
label={m.events_form_venue()}
|
||||
bind:value={newEventVenue}
|
||||
placeholder={m.events_form_venue_placeholder()}
|
||||
/>
|
||||
<Input
|
||||
variant="compact"
|
||||
bind:value={newEventVenueAddress}
|
||||
placeholder={m.events_form_venue_address_placeholder()}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Color -->
|
||||
<div class="flex flex-col gap-1.5">
|
||||
|
||||
@@ -1272,13 +1272,14 @@
|
||||
</div>
|
||||
{:else}
|
||||
<div
|
||||
class="grid {layoutConfig.cols} gap-4 {currentLayout === 'grid'
|
||||
? 'auto-rows-[calc(50vh-5rem)]'
|
||||
: 'h-full'}"
|
||||
class="grid {layoutConfig.cols} gap-4"
|
||||
style={currentLayout === "grid"
|
||||
? "grid-auto-rows: minmax(320px, calc(50vh - 5rem))"
|
||||
: ""}
|
||||
>
|
||||
{#each dashboard.panels as panel (panel.id)}
|
||||
<div
|
||||
class="bg-surface/50 rounded-2xl border border-light/5 flex flex-col overflow-hidden {currentLayout ===
|
||||
class="bg-surface/50 rounded-2xl border border-light/5 flex flex-col overflow-hidden min-h-[320px] {currentLayout ===
|
||||
'single'
|
||||
? 'col-span-full'
|
||||
: ''}"
|
||||
|
||||
Reference in New Issue
Block a user