Apply border-radius onto linear gradient in bubble layout (#7536)
This commit is contained in:
parent
3eb5130cda
commit
6d9d9a56b4
2 changed files with 18 additions and 11 deletions
|
@ -117,7 +117,9 @@ limitations under the License.
|
||||||
.mx_EventTile_line {
|
.mx_EventTile_line {
|
||||||
border-bottom-right-radius: var(--cornerRadius);
|
border-bottom-right-radius: var(--cornerRadius);
|
||||||
|
|
||||||
.mx_MImageBody .mx_MImageBody_thumbnail {
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
||||||
|
.mx_MImageBody::before,
|
||||||
|
.mx_MLocationBody_map {
|
||||||
border-bottom-right-radius: var(--cornerRadius);
|
border-bottom-right-radius: var(--cornerRadius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -132,7 +134,9 @@ limitations under the License.
|
||||||
float: right;
|
float: right;
|
||||||
border-bottom-left-radius: var(--cornerRadius);
|
border-bottom-left-radius: var(--cornerRadius);
|
||||||
|
|
||||||
.mx_MImageBody .mx_MImageBody_thumbnail {
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
||||||
|
.mx_MImageBody::before,
|
||||||
|
.mx_MLocationBody_map {
|
||||||
border-bottom-left-radius: var(--cornerRadius);
|
border-bottom-left-radius: var(--cornerRadius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -231,14 +235,18 @@ limitations under the License.
|
||||||
&.mx_EventTile_continuation[data-self=false] .mx_EventTile_line {
|
&.mx_EventTile_continuation[data-self=false] .mx_EventTile_line {
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
|
|
||||||
.mx_MImageBody .mx_MImageBody_thumbnail, .mx_MLocationBody_map {
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
||||||
|
.mx_MImageBody::before,
|
||||||
|
.mx_MLocationBody_map {
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.mx_EventTile_lastInSection[data-self=false] .mx_EventTile_line {
|
&.mx_EventTile_lastInSection[data-self=false] .mx_EventTile_line {
|
||||||
border-bottom-left-radius: var(--cornerRadius);
|
border-bottom-left-radius: var(--cornerRadius);
|
||||||
|
|
||||||
.mx_MImageBody .mx_MImageBody_thumbnail, .mx_MLocationBody_map {
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
||||||
|
.mx_MImageBody::before,
|
||||||
|
.mx_MLocationBody_map {
|
||||||
border-bottom-left-radius: var(--cornerRadius);
|
border-bottom-left-radius: var(--cornerRadius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -246,14 +254,18 @@ limitations under the License.
|
||||||
&.mx_EventTile_continuation[data-self=true] .mx_EventTile_line {
|
&.mx_EventTile_continuation[data-self=true] .mx_EventTile_line {
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
|
|
||||||
.mx_MImageBody .mx_MImageBody_thumbnail, .mx_MLocationBody_map {
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
||||||
|
.mx_MImageBody::before,
|
||||||
|
.mx_MLocationBody_map {
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.mx_EventTile_lastInSection[data-self=true] .mx_EventTile_line {
|
&.mx_EventTile_lastInSection[data-self=true] .mx_EventTile_line {
|
||||||
border-bottom-right-radius: var(--cornerRadius);
|
border-bottom-right-radius: var(--cornerRadius);
|
||||||
|
|
||||||
.mx_MImageBody .mx_MImageBody_thumbnail, .mx_MLocationBody_map {
|
.mx_MImageBody .mx_MImageBody_thumbnail,
|
||||||
|
.mx_MImageBody::before,
|
||||||
|
.mx_MLocationBody_map {
|
||||||
border-bottom-right-radius: var(--cornerRadius);
|
border-bottom-right-radius: var(--cornerRadius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,14 +15,9 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
|
|
||||||
/* TODO: This should be later reworked into something more generic */
|
/* TODO: This should be later reworked into something more generic */
|
||||||
export enum Layout {
|
export enum Layout {
|
||||||
IRC = "irc",
|
IRC = "irc",
|
||||||
Group = "group",
|
Group = "group",
|
||||||
Bubble = "bubble",
|
Bubble = "bubble",
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We need this because multiple components are still using JavaScript */
|
|
||||||
export const LayoutPropType = PropTypes.oneOf(Object.values(Layout));
|
|
||||||
|
|
Loading…
Reference in a new issue