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
341d5e74
Commit
341d5e74
authored
Nov 03, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update styling for the status change form.
parent
984c74b5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
20 deletions
+43
-20
converse.js
converse.js
+4
-2
css/converse.css
css/converse.css
+19
-10
sass/_controlbox.scss
sass/_controlbox.scss
+15
-4
src/templates/change_status_message.html
src/templates/change_status_message.html
+5
-4
No files found.
converse.js
View file @
341d5e74
...
...
@@ -5319,7 +5319,9 @@
'
label_custom_status
'
:
__
(
'
Custom status
'
),
'
label_save
'
:
__
(
'
Save
'
)
});
this
.
$el
.
find
(
'
.xmpp-status
'
).
replaceWith
(
input
);
var
$xmppstatus
=
this
.
$el
.
find
(
'
.xmpp-status
'
);
$xmppstatus
.
parent
().
addClass
(
'
no-border
'
);
$xmppstatus
.
replaceWith
(
input
);
this
.
$el
.
find
(
'
.custom-xmpp-status
'
).
focus
().
focus
();
},
...
...
@@ -5362,7 +5364,7 @@
// # For translators: the %1$s part gets replaced with the status
// # Example, I am online
var
status_message
=
model
.
get
(
'
status_message
'
)
||
__
(
"
I am %1$s
"
,
this
.
getPrettyStatus
(
stat
));
this
.
$el
.
find
(
'
#fancy-xmpp-status-select
'
).
html
(
this
.
$el
.
find
(
'
#fancy-xmpp-status-select
'
).
removeClass
(
'
no-border
'
).
html
(
converse
.
templates
.
chat_status
({
'
chat_status
'
:
stat
,
'
status_message
'
:
status_message
,
...
...
css/converse.css
View file @
341d5e74
...
...
@@ -1605,15 +1605,19 @@
#conversejs
#controlbox
#set-custom-xmpp-status
{
float
:
left
;
padding
:
0
;
}
#conversejs
#controlbox
#set-custom-xmpp-status
fieldset
{
padding
:
0
;
margin-top
:
-1px
;
}
#conversejs
#controlbox
#set-custom-xmpp-status
input
{
height
:
26px
;
width
:
-webkit-calc
(
100%
-
40px
);
width
:
calc
(
100%
-
40px
);
padding
:
0
0
0
0.5em
;
}
#conversejs
#controlbox
#set-custom-xmpp-status
button
{
#conversejs
#controlbox
#set-custom-xmpp-status
input
[
type
=
submit
]
{
height
:
26px
;
width
:
40px
;
padding
:
1px
;
}
padding
:
1px
;
float
:
right
;
}
#conversejs
#controlbox
#controlbox-tabs
{
text-align
:
center
;
display
:
inline
;
...
...
@@ -1649,8 +1653,6 @@
height
:
55px
;
cursor
:
default
;
color
:
#818479
;
}
#conversejs
#controlbox
.xmpp-status
{
display
:
inline
;
}
#conversejs
#controlbox
.fancy-dropdown
{
border
:
1px
solid
#B1BFC4
;
height
:
25px
;
...
...
@@ -1667,6 +1669,13 @@
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
display
:
inline
;
}
#conversejs
#controlbox
.fancy-dropdown.no-border
{
border
:
0
;
}
#conversejs
#controlbox
#fancy-xmpp-status-select
{
padding-left
:
0
;
}
#conversejs
#controlbox
#fancy-xmpp-status-select
.xmpp-status
{
margin-left
:
0.3em
;
display
:
inline
;
}
#conversejs
#controlbox
#fancy-xmpp-status-select
a
.change-xmpp-status-message
{
float
:
right
;
clear
:
right
;
...
...
sass/_controlbox.scss
View file @
341d5e74
...
...
@@ -207,15 +207,20 @@
#set-custom-xmpp-status
{
float
:
left
;
padding
:
0
;
fieldset
{
padding
:
0
;
margin-top
:
-1px
;
}
input
{
height
:
$controlbox-dropdown-height
+
1px
;
@include
calc
(
width
,
'100% - 40px'
);
padding
:
0
0
0
0
.5em
;
}
button
{
input
[
type
=
submit
]
{
height
:
$controlbox-dropdown-height
+
1px
;
width
:
40px
;
padding
:
1px
;
float
:
right
;
}
}
...
...
@@ -262,9 +267,6 @@
}
}
.xmpp-status
{
display
:
inline
;
}
.fancy-dropdown
{
border
:
1px
solid
$light-background-border-color
;
height
:
$controlbox-dropdown-height
;
...
...
@@ -283,8 +285,17 @@
white-space
:
nowrap
;
display
:
inline
;
}
&
.no-border
{
border
:
0
;
}
}
#fancy-xmpp-status-select
{
padding-left
:
0
;
.xmpp-status
{
margin-left
:
0
.3em
;
display
:
inline
;
}
a
.change-xmpp-status-message
{
float
:
right
;
clear
:
right
;
...
...
src/templates/change_status_message.html
View file @
341d5e74
<form
id=
"set-custom-xmpp-status"
>
<form
id=
"set-custom-xmpp-status"
class=
"pure-form"
>
<fieldset>
<span
class=
"input-button-group"
>
<input
type=
"text"
class=
"custom-xmpp-status"
{{
status_message
}}
placeholder=
"{{label_custom_status}}"
/>
<button
type=
"submit"
>
{{label_save}}
</button>
<input
type=
"text"
class=
"custom-xmpp-status"
{{
status_message
}}
placeholder=
"{{label_custom_status}}"
/>
<input
type=
"submit"
class=
"pure-button button-primary"
value=
"{{label_save}}"
/>
</span>
</fieldset>
</form>
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