Einige kleine verbesserungen #1

Open
Scarriffle wants to merge 115 commits from beta into master
5 changed files with 22 additions and 4 deletions
Showing only changes of commit fd7f7ddfe0 - Show all commits

View File

@@ -1811,13 +1811,15 @@ a { color: var(--primary); text-decoration: none; }
justify-content: space-between; justify-content: space-between;
gap: 12px; gap: 12px;
padding: 8px 16px; padding: 8px 16px;
background: rgba(66, 133, 244, 0.12); background: var(--bg-surface); /* fallback for browsers without color-mix */
border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 15%, var(--bg-app));
border-bottom: 1px solid var(--accent);
font-size: 14px; font-size: 14px;
color: var(--text-1); color: var(--text-1);
} }
.group-item-active { .group-item-active {
background: rgba(66, 133, 244, 0.15); background: var(--bg-surface);
background: color-mix(in srgb, var(--accent) 18%, transparent);
border-radius: 8px; border-radius: 8px;
} }
.group-item .cal-item-name { cursor: pointer; flex: 1; } .group-item .cal-item-name { cursor: pointer; flex: 1; }

View File

@@ -218,6 +218,8 @@
<main class="main-view" id="main-view"> <main class="main-view" id="main-view">
<div id="group-view-banner" class="group-view-banner hidden"> <div id="group-view-banner" class="group-view-banner hidden">
<span id="group-view-label"></span> <span id="group-view-label"></span>
<div style="flex:1"></div>
<button class="btn btn-primary btn-sm" id="group-view-new-event" data-i18n="group_new_event">+ Gruppentermin</button>
<button class="btn btn-ghost btn-sm" id="group-view-exit" data-i18n="group_exit">Gruppenansicht verlassen</button> <button class="btn btn-ghost btn-sm" id="group-view-exit" data-i18n="group_exit">Gruppenansicht verlassen</button>
</div> </div>
<div id="view-container"></div> <div id="view-container"></div>

View File

@@ -2293,6 +2293,16 @@ function renderGroupList() {
}); });
} }
// Open the new-event editor preselected to the active group's shared calendar.
function openGroupEventModal() {
const g = state.groups.find(x => x.id === state.activeGroupId);
if (!g || !g.group_calendar_id) { showToast(t('groups_none'), true); return; }
openNewEventModal(state.selectedDate || state.currentDate);
const sel = document.getElementById('ev-calendar');
sel.value = `local-${g.group_calendar_id}`;
updatePrivateRow(false);
}
function enterGroupView(groupId) { function enterGroupView(groupId) {
state.activeGroupId = groupId; state.activeGroupId = groupId;
const g = state.groups.find(x => x.id === groupId); const g = state.groups.find(x => x.id === groupId);
@@ -2387,6 +2397,8 @@ function bindGroupUI() {
if (addBtn) addBtn.onclick = () => openGroupModal(null); if (addBtn) addBtn.onclick = () => openGroupModal(null);
const exitBtn = document.getElementById('group-view-exit'); const exitBtn = document.getElementById('group-view-exit');
if (exitBtn) exitBtn.onclick = exitGroupView; if (exitBtn) exitBtn.onclick = exitGroupView;
const newEvtBtn = document.getElementById('group-view-new-event');
if (newEvtBtn) newEvtBtn.onclick = openGroupEventModal;
document.getElementById('group-save').onclick = async () => { document.getElementById('group-save').onclick = async () => {
const modal = document.getElementById('modal-group'); const modal = document.getElementById('modal-group');

View File

@@ -123,6 +123,7 @@ const translations = {
group_exit: 'Gruppenansicht verlassen', group_exit: 'Gruppenansicht verlassen',
group_icon: 'Icon', group_icon: 'Icon',
group_visible_flag: 'Für deine Gruppen sichtbar', group_visible_flag: 'Für deine Gruppen sichtbar',
group_new_event: '+ Gruppentermin',
upload_too_large: 'Datei zu groß (Server-Limit). Bitte Upload-Limit erhöhen.', upload_too_large: 'Datei zu groß (Server-Limit). Bitte Upload-Limit erhöhen.',
shared_with_me: 'Mit dir geteilt', shared_with_me: 'Mit dir geteilt',
settings_calendars: 'Kalender', settings_calendars: 'Kalender',
@@ -389,6 +390,7 @@ const translations = {
group_exit: 'Exit group view', group_exit: 'Exit group view',
group_icon: 'Icon', group_icon: 'Icon',
group_visible_flag: 'Visible to your groups', group_visible_flag: 'Visible to your groups',
group_new_event: '+ Group event',
upload_too_large: 'File too large (server limit). Please raise the upload limit.', upload_too_large: 'File too large (server limit). Please raise the upload limit.',
shared_with_me: 'Shared with me', shared_with_me: 'Shared with me',
settings_calendars: 'Calendars', settings_calendars: 'Calendars',

View File

@@ -1,2 +1,2 @@
// Increment APP_VERSION with every code change // Increment APP_VERSION with every code change
export const APP_VERSION = 'v34'; export const APP_VERSION = 'v35';