diff --git a/app/assets/javascripts/discourse/templates/modal/bookmark.hbs b/app/assets/javascripts/discourse/templates/modal/bookmark.hbs
index 5a1082c711f..538b30c74f8 100644
--- a/app/assets/javascripts/discourse/templates/modal/bookmark.hbs
+++ b/app/assets/javascripts/discourse/templates/modal/bookmark.hbs
@@ -22,62 +22,69 @@
{{#tap-tile-grid activeTile=selectedReminderType as |grid|}}
{{#if showAtDesktop}}
{{#tap-tile icon="desktop" tileId=reminderTypes.AT_DESKTOP activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.at_desktop"}}
+
{{i18n "bookmarks.reminders.at_desktop"}}
{{/tap-tile}}
{{/if}}
{{#if showLaterToday}}
{{#tap-tile icon="far-moon" tileId=reminderTypes.LATER_TODAY activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.later_today"}}
- {{laterTodayFormatted}}
+ {{i18n "bookmarks.reminders.later_today"}}
+ {{laterTodayFormatted}}
{{/tap-tile}}
{{/if}}
{{#tap-tile icon="far-sun" tileId=reminderTypes.TOMORROW activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.tomorrow"}}
- {{tomorrowFormatted}}
+ {{i18n "bookmarks.reminders.tomorrow"}}
+ {{tomorrowFormatted}}
{{/tap-tile}}
{{#if showLaterThisWeek}}
{{#tap-tile icon="angle-double-right" tileId=reminderTypes.LATER_THIS_WEEK activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.later_this_week"}}
- {{laterThisWeekFormatted}}
+ {{i18n "bookmarks.reminders.later_this_week"}}
+ {{laterThisWeekFormatted}}
{{/tap-tile}}
{{/if}}
{{#tap-tile icon="briefcase" tileId=reminderTypes.START_OF_NEXT_BUSINESS_WEEK activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.start_of_next_business_week"}}
- {{startNextBusinessWeekFormatted}}
+ {{i18n "bookmarks.reminders.start_of_next_business_week"}}
+ {{startNextBusinessWeekFormatted}}
{{/tap-tile}}
{{#tap-tile icon="far-clock" tileId=reminderTypes.NEXT_WEEK activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.next_week"}}
- {{nextWeekFormatted}}
+ {{i18n "bookmarks.reminders.next_week"}}
+ {{nextWeekFormatted}}
{{/tap-tile}}
{{#tap-tile icon="far-calendar-plus" tileId=reminderTypes.NEXT_MONTH activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.next_month"}}
- {{nextMonthFormatted}}
+ {{i18n "bookmarks.reminders.next_month"}}
+ {{nextMonthFormatted}}
{{/tap-tile}}
{{#tap-tile icon="calendar-alt" tileId=reminderTypes.CUSTOM activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.custom"}}
+ {{i18n "bookmarks.reminders.custom"}}
{{/tap-tile}}
+
+ {{#if customDateTimeSelected}}
+
+
+ {{d-icon "calendar-alt"}}
+ {{date-picker-future
+ value=customReminderDate
+ onSelect=(action (mut customReminderDate))
+ }}
+
+
+ {{d-icon "far-clock"}}
+ {{input placeholder="--:--" type="time" class="time-input" value=customReminderTime}}
+
+
+ {{/if}}
+
{{#if showLastCustom}}
{{#tap-tile icon="undo" tileId=reminderTypes.LAST_CUSTOM activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.last_custom"}}
- {{lastCustomFormatted}}
+ {{i18n "bookmarks.reminders.last_custom"}}
+ {{lastCustomFormatted}}
{{/tap-tile}}
{{/if}}
+
{{#tap-tile icon="ban" tileId=reminderTypes.NONE activeTile=grid.activeTile onChange=(action "selectReminderType")}}
- {{i18n "bookmarks.reminders.none"}}
+ {{i18n "bookmarks.reminders.none"}}
{{/tap-tile}}
{{/tap-tile-grid}}
- {{#if customDateTimeSelected}}
-
- {{d-icon "calendar-alt"}}
- {{date-picker-future
- value=customReminderDate
- onSelect=(action (mut customReminderDate))
- }}
- {{d-icon "far-clock"}}
- {{input placeholder="--:--" type="time" class="time-input" value=customReminderTime}}
-
- {{/if}}
{{else}}
{{html-safe (i18n "bookmarks.no_timezone" basePath=basePath)}}
diff --git a/app/assets/stylesheets/common/components/bookmark-modal.scss b/app/assets/stylesheets/common/components/bookmark-modal.scss
index 14f91f70c33..0b08a4c8bdb 100644
--- a/app/assets/stylesheets/common/components/bookmark-modal.scss
+++ b/app/assets/stylesheets/common/components/bookmark-modal.scss
@@ -1,9 +1,8 @@
.bookmark-with-reminder.modal {
.modal-inner-container {
- max-width: 95%;
+ box-sizing: border-box;
}
.modal-body {
- max-width: 410px;
width: 100%;
box-sizing: border-box;
@@ -17,24 +16,36 @@
}
.custom-date-time-wrap {
- display: flex;
- flex-direction: row;
- align-items: baseline;
-
- .svg-icon {
- padding: 0 5px;
+ 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;
}
- .date-picker-wrapper {
- flex: 1;
-
- .date-picker {
+ .tap-tile-date-input,
+ .tap-tile-time-input {
+ display: flex;
+ align-items: center;
+ input {
width: 100%;
+ min-width: unset;
}
}
+ .date-picker,
.time-input {
- flex: 1;
+ text-align: left;
+ padding-top: 5px;
+ }
+
+ .time-input,
+ .date-picker-wrapper {
+ flex: 1 1 auto;
}
}
}
diff --git a/app/assets/stylesheets/common/components/tap-tile.scss b/app/assets/stylesheets/common/components/tap-tile.scss
index 6f71643cd1b..e558b7adbf4 100644
--- a/app/assets/stylesheets/common/components/tap-tile.scss
+++ b/app/assets/stylesheets/common/components/tap-tile.scss
@@ -1,28 +1,17 @@
.tap-tile-grid {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
justify-content: space-between;
- $tile-width: 100px;
- $horizontal-tile-padding: 5px;
+ margin: 0.5em 0 1em 0;
.tap-tile {
color: $primary-high;
- padding: 10px $horizontal-tile-padding;
+ padding: 0.75em;
display: flex;
- flex-direction: column;
- text-align: center;
+ flex-wrap: wrap;
align-items: center;
- border: 1px solid $primary-medium;
- margin: 0 0 20px;
- width: $tile-width;
- font-size: $font-down-2;
+ border: 1px solid $primary-low;
+ margin: 0 0 0.5em;
cursor: pointer;
- @media screen and (max-width: 360px) {
- width: $tile-width - 10;
- }
-
&:hover {
background-color: $tertiary-low;
}
@@ -31,16 +20,18 @@
background-color: $highlight-medium;
}
- .svg-icon,
- .svg-icon-title {
- width: 2.5em;
- height: 2.5em;
- margin-bottom: 10px;
+ .d-icon {
+ color: $primary-medium;
+ margin: 0 0.5em 0 0;
+ }
+
+ .tap-tile-title {
+ font-weight: bold;
+ margin-right: auto;
+ }
+
+ .tap-tile-date {
+ margin-left: 1em;
}
}
-
- &::after {
- content: "";
- width: $tile-width + ($horizontal-tile-padding * 3);
- }
}