[MM-58686] Adjust text alignment on custom status tooltip (#27353)

* Change: Adjust text alignment on custom status tooltip
Change: Update 'Today' expiry time calculation on custom_status_modal

* Change: Use display inline-block instead of flex for custom-status class

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Ivy Gesare
2024-07-03 18:54:14 +03:00
коммит произвёл GitHub
родитель 90534b13cf
Коммит 0e6ed3d490
3 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@@ -267,8 +267,7 @@
}
.custom-status {
display: flex;
justify-content: center;
display: inline-block;
&-expiry {
font-weight: 400;

Просмотреть файл

@@ -76,7 +76,7 @@ function CustomStatusEmoji({
emojiName={customStatus.emoji}
size={14}
emojiStyle={{
marginTop: 2,
marginTop: -1,
}}
/>
{customStatus.text &&

Просмотреть файл

@@ -206,7 +206,7 @@ const CustomStatusModal: React.FC<Props> = (props: Props) => {
case FOUR_HOURS:
return moment().add(4, 'hours').seconds(0).milliseconds(0).toISOString();
case TODAY:
return moment().endOf('day').toISOString();
return moment().add(1, 'day').set({hour: 8, minute: 0}).toISOString();
case THIS_WEEK:
return moment().endOf('week').toISOString();
case DATE_AND_TIME: