From ca1b8a26206b239bc0c1579803f390b740cdbfb7 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 8 Oct 2021 16:17:16 +0300 Subject: [PATCH] Message: Bigger border-radius on iOS --- src/components/common/Audio.scss | 6 ++++++ src/components/middle/message/MessageMeta.scss | 8 +++++++- src/components/middle/message/_message-content.scss | 8 ++++++++ src/styles/index.scss | 5 +++++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/src/components/common/Audio.scss b/src/components/common/Audio.scss index f4748899e..675cba849 100644 --- a/src/components/common/Audio.scss +++ b/src/components/common/Audio.scss @@ -140,6 +140,12 @@ } } + body.is-ios & { + .voice-duration.unread::after { + margin-bottom: .4375rem; + } + } + &:not(.own) .voice-duration span { color: var(--color-primary); } diff --git a/src/components/middle/message/MessageMeta.scss b/src/components/middle/message/MessageMeta.scss index 5febf3563..b1b75292f 100644 --- a/src/components/middle/message/MessageMeta.scss +++ b/src/components/middle/message/MessageMeta.scss @@ -23,6 +23,12 @@ margin-inline-end: .1875rem; } + body.is-ios & { + .message-time { + margin-inline-end: .25rem; + } + } + .message-views { margin-inline-start: .1875rem; } @@ -48,7 +54,7 @@ .media:not(.text) &, .Message .custom-shape & { - background: rgba(0,0,0, 0.2); + background: rgba(0, 0, 0, 0.2); --color-accent-own: white; --color-accent: white; color: white !important; diff --git a/src/components/middle/message/_message-content.scss b/src/components/middle/message/_message-content.scss index 1322f592b..49ea26c56 100644 --- a/src/components/middle/message/_message-content.scss +++ b/src/components/middle/message/_message-content.scss @@ -253,6 +253,14 @@ } } + body.is-ios &.has-solid-background { + padding-bottom: 0.4375rem; + } + + body.is-ios .Message.own &.has-solid-background { + padding-left: 0.625rem; + } + &:not(.has-appendix) .svg-appendix { display: none; } diff --git a/src/styles/index.scss b/src/styles/index.scss index 06cfa77ab..cf8cc7f14 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -40,6 +40,11 @@ html[lang=fa] body { } } +body.is-ios { + --border-radius-messages: 1rem; + --border-radius-messages-small: 0.5rem; +} + body.cursor-grabbing, body.cursor-grabbing * { cursor: grabbing !important; }