Quick fixes to lang plus mmap realtime

This commit is contained in:
AlacrisDevs
2026-02-08 23:30:09 +02:00
parent f2384bceb8
commit ce80dc6d75
5 changed files with 438 additions and 242 deletions

View File

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

View File

@@ -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'
: ''}"