Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
4f8cb48f
Commit
4f8cb48f
authored
Jan 10, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSS: Avoid scrolled overflows for long messages and long usernames
parent
58c29ea2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
17 deletions
+26
-17
css/converse.css
css/converse.css
+13
-9
sass/_messages.scss
sass/_messages.scss
+10
-8
sass/_variables.scss
sass/_variables.scss
+3
-0
No files found.
css/converse.css
View file @
4f8cb48f
...
...
@@ -9321,6 +9321,8 @@ readers do not read off random characters that represent icons */
--message-text-color: #555;
--message-receipt-color: #3AA569;
--save-button-color: #3AA569;
--message-avatar-width: 36px;
--message-avatar-height: 36px;
--chat-textarea-color: #666;
--chat-textarea-background-color: white;
--chat-textarea-height: 60px;
...
...
@@ -11837,7 +11839,8 @@ body.converse-fullscreen {
font-style
:
italic
;
}
#conversejs
.message.chat-msg
{
display
:
flex
;
display
:
inline-flex
;
width
:
100%
;
flex-direction
:
row
;
overflow
:
auto
;
padding
:
0.25rem
1rem
;
}
...
...
@@ -11870,7 +11873,7 @@ body.converse-fullscreen {
justify-content
:
space-between
;
align-items
:
stretch
;
margin-left
:
0.5rem
;
width
:
100%
;
}
width
:
calc
(
100%
-
var
(
--message-avatar-width
))
;
}
#conversejs
.message.chat-msg
.chat-msg__content--action
{
margin-left
:
0
;
}
#conversejs
.message.chat-msg
.chat-msg__body
{
...
...
@@ -11879,9 +11882,10 @@ body.converse-fullscreen {
justify-content
:
space-between
;
width
:
100%
;
}
#conversejs
.message.chat-msg
.chat-msg__message
{
display
:
flex
;
display
:
inline-
flex
;
flex-direction
:
column
;
width
:
100%
;
}
width
:
100%
;
overflow-wrap
:
break-word
;
}
#conversejs
.message.chat-msg
.chat-msg__edit-modal
{
cursor
:
pointer
;
padding-right
:
0.5em
;
}
...
...
@@ -11923,16 +11927,16 @@ body.converse-fullscreen {
#conversejs
.message.chat-msg
.chat-msg__avatar
{
margin-top
:
0.5em
;
vertical-align
:
middle
;
height
:
36px
;
width
:
36px
;
min-height
:
36px
;
min-width
:
36px
;
}
height
:
var
(
--message-avatar-height
)
;
width
:
var
(
--message-avatar-width
)
;
min-height
:
var
(
--message-avatar-height
)
;
min-width
:
var
(
--message-avatar-width
)
;
}
#conversejs
.message.chat-msg
.chat-msg__heading
{
width
:
100%
;
margin-top
:
0.5em
;
padding-right
:
0.25rem
;
padding-bottom
:
0.25rem
;
display
:
block
;
}
display
:
flex
;
}
#conversejs
.message.chat-msg
.chat-msg__heading
.chat-msg__author
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
sass/_messages.scss
View file @
4f8cb48f
...
...
@@ -68,7 +68,8 @@
}
&
.chat-msg
{
display
:
flex
;
display
:
inline-flex
;
width
:
100%
;
flex-direction
:
row
;
overflow
:
auto
;
// Ensures that content stays inside
padding
:
0
.25rem
1rem
;
...
...
@@ -118,7 +119,7 @@
justify-content
:
space-between
;
align-items
:
stretch
;
margin-left
:
0
.5rem
;
width
:
100%
;
width
:
calc
(
100%
-
var
(
--
message-avatar-width
))
;
}
.chat-msg__content--action
{
margin-left
:
0
;
...
...
@@ -132,9 +133,10 @@
}
.chat-msg__message
{
display
:
flex
;
display
:
inline-
flex
;
flex-direction
:
column
;
width
:
100%
;
overflow-wrap
:
break-word
;
}
.chat-msg__edit-modal
{
...
...
@@ -199,10 +201,10 @@
.chat-msg__avatar
{
margin-top
:
0
.5em
;
vertical-align
:
middle
;
height
:
36px
;
width
:
36px
;
min-height
:
36px
;
min-width
:
36px
;
height
:
var
(
--
message-avatar-height
)
;
width
:
var
(
--
message-avatar-width
)
;
min-height
:
var
(
--
message-avatar-height
)
;
min-width
:
var
(
--
message-avatar-width
)
;
}
.chat-msg__heading
{
...
...
@@ -210,7 +212,7 @@
margin-top
:
0
.5em
;
padding-right
:
0
.25rem
;
padding-bottom
:
0
.25rem
;
display
:
block
;
display
:
flex
;
.chat-msg__author
{
overflow
:
hidden
;
...
...
sass/_variables.scss
View file @
4f8cb48f
...
...
@@ -29,6 +29,9 @@ $mobile_portrait_length: 480px !default;
--message-receipt-color
:
#3AA569
;
// $green
--save-button-color
:
#3AA569
;
// $green
--message-avatar-width
:
36px
;
--message-avatar-height
:
36px
;
--chat-textarea-color
:
#666
;
--chat-textarea-background-color
:
white
;
--chat-textarea-height
:
60px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment