ConverseJS theme: Fix margin when hidding avatars.
This commit is contained in:
parent
01faeb2d4d
commit
d45893a22c
@ -8,7 +8,7 @@ module.exports = {
|
|||||||
rules: {
|
rules: {
|
||||||
'selector-class-pattern': [
|
'selector-class-pattern': [
|
||||||
// extending the kebab-case to accept ConverseJS class names.
|
// extending the kebab-case to accept ConverseJS class names.
|
||||||
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*(__[a-z]+)?$',
|
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*((__|--)[a-z]+(-[a-z0-9]+)*)?$',
|
||||||
{
|
{
|
||||||
message: 'Expected class selector to be kebab-case, or ConverseJS-style.',
|
message: 'Expected class selector to be kebab-case, or ConverseJS-style.',
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,20 @@
|
|||||||
// hidding avatars when screen width is not big enough.
|
// hidding avatars when screen width is not big enough.
|
||||||
@media screen and (max-width: 576px) {
|
@media screen and (max-width: 576px) {
|
||||||
.message {
|
.message {
|
||||||
.chat-msg__content {
|
&.chat-msg {
|
||||||
width: 100%;
|
.chat-msg__content {
|
||||||
}
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.chat-msg__avatar {
|
&.chat-msg--followup {
|
||||||
display: none;
|
&.chat-msg--with-avatar .chat-msg__content {
|
||||||
|
margin-left: 0.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.chat-msg__avatar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user