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
5e686075
Commit
5e686075
authored
Feb 19, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update chatbox head with new markup
parent
d8f80bc0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
27 deletions
+42
-27
css/converse.css
css/converse.css
+1
-2
css/inverse.css
css/inverse.css
+3
-3
mockup/chatbox.html
mockup/chatbox.html
+6
-1
sass/_chatbox.scss
sass/_chatbox.scss
+0
-1
sass/inverse/_chatbox.scss
sass/inverse/_chatbox.scss
+0
-1
sass/inverse/_controlbox.scss
sass/inverse/_controlbox.scss
+4
-0
src/converse-fullscreen.js
src/converse-fullscreen.js
+2
-2
src/templates/chatbox_head.html
src/templates/chatbox_head.html
+26
-17
No files found.
css/converse.css
View file @
5e686075
...
...
@@ -5128,8 +5128,7 @@ body.reset {
background-color
:
#3AA569
;
}
#converse-embedded-chat
.chat-head
.avatar
,
#conversejs
.chat-head
.avatar
{
margin-right
:
0.5em
;
float
:
left
;
}
margin-right
:
0.5em
;
}
#converse-embedded-chat
.chat-head
.chatbox-buttons
,
#conversejs
.chat-head
.chatbox-buttons
{
flex-direction
:
row-reverse
;
...
...
css/inverse.css
View file @
5e686075
...
...
@@ -5184,8 +5184,7 @@ body {
background-color
:
#3AA569
;
}
#converse-embedded-chat
.chat-head
.avatar
,
#conversejs
.chat-head
.avatar
{
margin-right
:
0.5em
;
float
:
left
;
}
margin-right
:
0.5em
;
}
#converse-embedded-chat
.chat-head
.chatbox-buttons
,
#conversejs
.chat-head
.chatbox-buttons
{
flex-direction
:
row-reverse
;
...
...
@@ -5622,7 +5621,6 @@ body {
#conversejs
.fullscreen
.flyout
{
border
:
1.2em
solid
#3AA569
;
border-top
:
0.8em
solid
#3AA569
;
border-radius
:
0
;
bottom
:
0
;
}
#conversejs
.fullscreen
.chat-head
{
font-size
:
20px
;
...
...
@@ -6058,6 +6056,8 @@ body {
margin
:
0
;
}
#conversejs
.fullscreen
#controlbox
.controlbox-pane
{
border-radius
:
0
;
}
#conversejs
.fullscreen
#controlbox
.flyout
{
border-radius
:
0
;
}
#conversejs
.fullscreen
#controlbox
#login-dialog
{
border-radius
:
0
;
}
#conversejs
.fullscreen
#controlbox
#login-dialog
.converse-form
{
...
...
mockup/chatbox.html
View file @
5e686075
...
...
@@ -25,7 +25,12 @@
<div
class=
"chat-head chat-head-chatbox row no-gutters"
>
<div
class=
"col-9"
>
<div
class=
"row no-gutters"
>
<div
class=
"col-auto"
><canvas
height=
"44"
width=
"44"
class=
"avatar"
></canvas></div>
<div
class=
"col-auto"
>
<img
alt=
"User Avatar"
class=
"avatar"
height=
"50px"
width=
"50px"
src=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwHCy455JBsggAABkJJREFUeNrtnM1PE1sUwHvvTD8otWLHST/Gimi1CEgr6M6FEWuIBo2pujDVsNDEP8GN/4MbN7oxrlipG2OCgZgYlxAbkRYw1KqkIDRCSkM7nXvvW8x7vjyNeQ9m7p1p3z1LQk/v/Dhz7vkEXL161cHl9wI5Ag6IA+KAOCAOiAPigDggLhwQB2S+iNZ+PcYY/SWEEP2HAAAIoSAIoihCCP+ngDDGtVotGAz29/cfOXJEUZSOjg6n06lp2sbGRqlUWlhYyGazS0tLbrdbEASrzgksyeYJId3d3el0uqenRxRFA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FU676dKLlo6yWRdItIBwQB8QBcUCtfosRQjRNQwhhjPUC4w46WXryBSHU1zgEQWBz99EFhDGu1+t+v//48ePxeFxRlD179ng8nh0Efgiher2+vr6ur3HMzMysrq7uTJVdACGEurq6Ll++nEgkPB7Pj9jPoDHqOxyqqubz+WfPnuVyuV9XPeyeagAAAoHArVu3BgcHab8CuVzu4cOHpVKJUnfA5GweY+xyuc6cOXPv3r1IJMLAR8iyPDw8XK/Xi8Wiqqqmm5KZgBBC7e3tN27cuHbtGuPVpf7+/lAoNDs7W61WzfVKpgHSSzw3b95MpVKW3MfRaDQSiczNzVUqFRMZmQOIEOL1eq9fv3727FlL1t50URRFluX5+flqtWpWEGAOIFEUU6nUlStXLKSjy759+xwOx9zcnKZpphzGHMzhcDiTydgk9r1w4YIp7RPTAAmCkMlk2FeLf/tIEKbTab/fbwtAhJBoNGrutpNx6e7uPnTokC1eMU3T0um0DZPMkZER6wERQnw+n/FFSxpy7Nix3bt3WwwIIcRgIWnHkkwmjecfRgGx7DtuV/r6+iwGhDHev3+/bQF1dnYaH6E2CkiWZdsC2rt3r8WAHA5HW1ubbQGZcjajgOwTH/4qNko1Wlg4IA6IA+KAOKBWBUQIsfNojyliKIoRRfH9+/dut9umf3wzpoUNNQ4BAJubmwz+ic+OxefzWWlBhJD29nbug7iT5sIBcUAcEAfEAXFAHBAHxOVn+QMrmWpuPZx12gAAAABJRU5ErkJggg=="
/>
</div>
<div
class=
"col chat-title"
title=
"j@chat.example.org"
>
JC Brand
<p
class=
"user-custom-message"
title=
"10000ft in the air"
>
10000ft in the air
</p>
</div>
...
...
sass/_chatbox.scss
View file @
5e686075
...
...
@@ -33,7 +33,6 @@
.avatar
{
margin-right
:
0
.5em
;
float
:
left
;
}
.chatbox-buttons
{
...
...
sass/inverse/_chatbox.scss
View file @
5e686075
...
...
@@ -6,7 +6,6 @@
.flyout
{
border
:
$flyout-padding
solid
$chat-head-color
;
border-top
:
0
.8em
solid
$chat-head-color
;
border-radius
:
0
;
bottom
:
0
;
}
.chat-head
{
...
...
sass/inverse/_controlbox.scss
View file @
5e686075
...
...
@@ -6,6 +6,10 @@
border-radius
:
0
;
}
.flyout
{
border-radius
:
0
;
}
#login-dialog
{
border-radius
:
0
;
.converse-form
{
...
...
src/converse-fullscreen.js
View file @
5e686075
...
...
@@ -61,8 +61,8 @@
initialize
()
{
this
.
_converse
.
api
.
settings
.
update
({
chatview_avatar_height
:
44
,
chatview_avatar_width
:
44
,
chatview_avatar_height
:
50
,
chatview_avatar_width
:
50
,
hide_open_bookmarks
:
true
,
show_controlbox_by_default
:
true
,
sticky_controlbox
:
true
...
...
src/templates/chatbox_head.html
View file @
5e686075
<div
class=
"chat-head chat-head-chatbox"
>
<a
class=
"chatbox-btn close-chatbox-button icon-close"
title=
"{{{o.info_close}}}"
></a>
<div
class=
"chat-head chat-head-chatbox row no-gutters"
>
<div
class=
"col-9"
>
<div
class=
"row no-gutters"
>
{[ if (o.show_avatar) { ]}
<div
class=
"col-auto"
>
<img
alt=
"User Avatar"
class=
"avatar"
height=
"{{{o.avatar_height}}}px"
width=
"{{{o.avatar_width}}}px"
src=
"data:{{{o.image_type}}};base64,{{{o.image}}}"
/>
</div>
{[ } ]}
<div
class=
"chat-title
"
>
<div
class=
"col chat-title"
title=
"{{{o.jid}}}
"
>
{[ if (o.url) { ]}
<a
href=
"{{{o.url}}}"
target=
"_blank"
rel=
"noopener"
class=
"user"
>
{[ } ]}
...
...
@@ -16,4 +19,10 @@
{[ } ]}
<p
class=
"user-custom-message"
>
{{{ o.status }}}
</p>
</div>
</div>
</div>
<div
class=
"col-3"
>
<a
class=
"chatbox-btn close-chatbox-button fa fa-close"
title=
{{{o.info_close}}}
></a>
<a
class=
"chatbox-btn fa fa-vcard"
title=
"Contact profile"
data-toggle=
"modal"
data-target=
"#contactProfileModal"
></a>
</div>
</div>
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