mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix calendar reminders
This commit is contained in:
parent
3f6c72ff67
commit
e8513a2d1d
@ -115,6 +115,8 @@
|
||||
.tui-full-calendar-popup {
|
||||
width: 540px;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
#tui-full-calendar-popup-arrow {
|
||||
@ -188,6 +190,7 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
font: @colortheme_app-font;
|
||||
padding: 0 10px;
|
||||
}
|
||||
input { flex: 1; }
|
||||
}
|
||||
@ -290,6 +293,7 @@
|
||||
display: flex;
|
||||
}
|
||||
.cp-calendar-notif-list-container {
|
||||
width: 100%;
|
||||
margin-bottom: 10px;
|
||||
.cp-notif-label {
|
||||
margin-top: 0.5em;
|
||||
@ -298,6 +302,8 @@
|
||||
.cp-calendar-notif-list {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
flex: 1;
|
||||
min-width: 150px;
|
||||
.cp-notif-entry {
|
||||
display: flex;
|
||||
margin-bottom: 2px;
|
||||
@ -309,13 +315,18 @@
|
||||
display: inline-flex;
|
||||
line-height: 30px;
|
||||
vertical-align: middle;
|
||||
flex-grow: 1;
|
||||
.cp-before {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
span:not(:last-child) {
|
||||
margin: 0px 3px;
|
||||
margin: 0;
|
||||
margin-right: 0.3rem;
|
||||
}
|
||||
span:first-child {
|
||||
margin-left: 0.3rem;
|
||||
}
|
||||
.btn-danger-outline {
|
||||
display: block;
|
||||
@ -344,6 +355,13 @@
|
||||
}
|
||||
.cp-calendar-notif-form {
|
||||
align-items: center;
|
||||
.cp-calendar-notif-form-buttons {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
& > input {
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
// margin-bottom: 20px;
|
||||
input {
|
||||
width: 80px;
|
||||
@ -624,6 +642,10 @@
|
||||
}
|
||||
|
||||
@media (max-width: @browser_media-medium-screen) {
|
||||
.cp-calendar-notif-list-container, .cp-calendar-notif-form {
|
||||
flex-direction: column;
|
||||
align-items: unset !important;
|
||||
}
|
||||
.cp-calendar-newevent {
|
||||
i {
|
||||
margin: 0 !important;
|
||||
|
||||
@ -1920,7 +1920,9 @@ APP.recurrenceRule = {
|
||||
};
|
||||
$(addNotif).click(function () {
|
||||
var unit = $block.getValue();
|
||||
var value = $number.val();
|
||||
var val = $number.val();
|
||||
if (val === "") { return void UI.warn(Messages.error); }
|
||||
var value = Number(val);
|
||||
addNotification(unit, value);
|
||||
});
|
||||
oldReminders.forEach(function (minutes) {
|
||||
@ -1931,9 +1933,11 @@ APP.recurrenceRule = {
|
||||
listContainer,
|
||||
h('div.cp-calendar-notif-form', [
|
||||
h('span.cp-notif-label', Messages.calendar_addNotification),
|
||||
number,
|
||||
$block[0],
|
||||
addNotif
|
||||
h('span.cp-calendar-notif-form-buttons', [
|
||||
number,
|
||||
$block[0],
|
||||
addNotif
|
||||
])
|
||||
])
|
||||
]);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user