mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:51:36 +08:00
41b43a2a25
This adds an option to "delete on owner reply" to bookmarks. If you select this option in the modal, then reply to the topic the bookmark is in, the bookmark will be deleted on reply. This PR also changes the checkboxes for these additional bookmark options to an Integer column in the DB with a combobox to select the option you want. The use cases are: * Sometimes I will bookmark the topics to read it later. In this case we definitely don’t need to keep the bookmark after I replied to it. * Sometimes I will read the topic in mobile and I will prefer to reply in PC later. Or I may have to do some research before reply. So I will bookmark it for reply later.
99 lines
1.6 KiB
SCSS
99 lines
1.6 KiB
SCSS
.bookmark-with-reminder.modal {
|
|
.modal-inner-container {
|
|
box-sizing: border-box;
|
|
}
|
|
.modal-body {
|
|
width: 375px;
|
|
box-sizing: border-box;
|
|
|
|
@media (max-width: 600px) {
|
|
width: 100%;
|
|
}
|
|
|
|
.control-label {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.ember-text-field.bookmark-name {
|
|
min-width: 220px;
|
|
width: 100%;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
}
|
|
|
|
.existing-reminder-at-alert {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
|
|
.d-icon {
|
|
margin-right: 1em;
|
|
}
|
|
}
|
|
|
|
.custom-date-time-wrap {
|
|
padding: 1em 1em 0.5em;
|
|
border: 1px solid $primary-low;
|
|
border-top: none;
|
|
margin-top: -0.667em;
|
|
background: $primary-very-low;
|
|
.d-icon {
|
|
padding: 0 0.75em 0 0;
|
|
color: $primary-high;
|
|
margin-top: -0.5em;
|
|
}
|
|
|
|
.tap-tile-date-input,
|
|
.tap-tile-time-input {
|
|
display: flex;
|
|
align-items: center;
|
|
input {
|
|
width: 100%;
|
|
min-width: unset;
|
|
}
|
|
}
|
|
|
|
.date-picker,
|
|
.time-input {
|
|
text-align: left;
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.time-input,
|
|
.date-picker-wrapper {
|
|
flex: 1 1 auto;
|
|
}
|
|
}
|
|
|
|
.bookmark-name-wrap {
|
|
display: inline-flex;
|
|
width: 100%;
|
|
align-items: end;
|
|
}
|
|
|
|
.bookmark-options-button {
|
|
margin-left: 0.5em;
|
|
margin-bottom: 0.5em;
|
|
background: transparent;
|
|
padding-right: 6px;
|
|
}
|
|
|
|
.bookmark-options-panel {
|
|
.select-kit {
|
|
width: 100%;
|
|
}
|
|
|
|
margin-bottom: 18px;
|
|
display: none;
|
|
|
|
label {
|
|
display: flex;
|
|
|
|
span {
|
|
display: block;
|
|
flex: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|