From 12432159c4b4572c3a04c3a8a63197d2426f7d3a Mon Sep 17 00:00:00 2001 From: ivk Date: Mon, 10 Aug 2020 13:08:30 +0200 Subject: [PATCH] Fix UI issues with calendar invites, #1355 --- src/calendar/CalendarEventEditDialog.js | 3 ++- src/calendar/CalendarEventPopup.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calendar/CalendarEventEditDialog.js b/src/calendar/CalendarEventEditDialog.js index 60f6d7f1098..03ff9b71191 100644 --- a/src/calendar/CalendarEventEditDialog.js +++ b/src/calendar/CalendarEventEditDialog.js @@ -13,7 +13,7 @@ import {Icons} from "../gui/base/icons/Icons" import type {CalendarEvent} from "../api/entities/tutanota/CalendarEvent" import {downcast, memoized, noOp} from "../api/common/utils/Utils" import type {ButtonAttrs} from "../gui/base/ButtonN" -import {ButtonN, ButtonType} from "../gui/base/ButtonN" +import {ButtonColors, ButtonN, ButtonType} from "../gui/base/ButtonN" import type {CalendarAttendeeStatusEnum} from "../api/common/TutanotaConstants" import {AlarmInterval, CalendarAttendeeStatus, EndType, Keys, RepeatPeriod} from "../api/common/TutanotaConstants" import {findAndRemove, numberRange, remove} from "../api/common/utils/ArrayUtils" @@ -109,6 +109,7 @@ export function showCalendarEventDialog(date: Date, calendars: Map editorOptions.enabled, noBubble: true, type: ButtonType.Toggle, + colors: ButtonColors.Elevated, }) ) .setMinHeight(400) diff --git a/src/calendar/CalendarEventPopup.js b/src/calendar/CalendarEventPopup.js index 49d18e81674..f649e5d41bb 100644 --- a/src/calendar/CalendarEventPopup.js +++ b/src/calendar/CalendarEventPopup.js @@ -44,7 +44,7 @@ export class CalendarEventPopup implements ModalComponent { } view(vnode: Vnode) { - return m(".abs.content-bg.plr.border-radius.dropdown-shadow", { + return m(".abs.elevated-bg.plr.border-radius.dropdown-shadow", { style: { width: px(Math.min(window.innerWidth, 400)), opacity: "0", // see hack description below