Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Luc Didry
kresus
Commits
3e8c4e16
Commit
3e8c4e16
authored
Mar 05, 2019
by
Nicolas Frandeboeuf
Committed by
Benjamin Bouvier
Mar 07, 2019
Browse files
Improve settings layout on mobile
parent
65d3f2ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
client/components/settings/backup/index.js
View file @
3e8c4e16
...
...
@@ -8,7 +8,7 @@ import ExportModule from './export';
const
BackupSection
=
()
=>
{
return
(
<
form
className
=
"
settings-form
"
>
<
div
>
<
div
className
=
"
wrap-on-mobile
"
>
<
label
htmlFor
=
"
exportInstance
"
>
{
$t
(
'
client.settings.export_instance
'
)}
<
/label
>
<
div
>
<
p
className
=
"
button-desc
"
>
{
$t
(
'
client.settings.export_instance_help
'
)}
<
/p
>
...
...
@@ -16,7 +16,7 @@ const BackupSection = () => {
<
/div
>
<
/div
>
<
div
>
<
div
className
=
"
wrap-on-mobile
"
>
<
label
htmlFor
=
"
importInstance
"
>
{
$t
(
'
client.settings.import_instance
'
)}
<
/label
>
<
div
>
<
p
className
=
"
button-desc
"
>
{
$t
(
'
client.settings.import_instance_help
'
)}
<
/p
>
...
...
client/components/settings/weboob/index.js
View file @
3e8c4e16
...
...
@@ -81,6 +81,8 @@ class WeboobParameters extends React.PureComponent {
/
>
<
/p
>
<
hr
/>
<
p
>
<
label
htmlFor
=
"
autoWeboobUpdate
"
>
{
$t
(
'
client.settings.weboob_auto_update
'
)}
...
...
@@ -94,7 +96,7 @@ class WeboobParameters extends React.PureComponent {
/
>
<
/p
>
<
div
>
<
div
className
=
"
wrap-on-mobile
"
>
<
label
htmlFor
=
"
updateWeboob
"
>
{
$t
(
'
client.settings.update_weboob
'
)}
<
/label
>
<
div
>
...
...
client/css/sections/settings/all.css
View file @
3e8c4e16
...
...
@@ -22,6 +22,16 @@
.settings-form
>
*
:not
(
.alerts
)
>
:first-child
{
width
:
40%
;
}
.settings-form
>
.wrap-on-mobile
{
flex-wrap
:
wrap
;
}
.settings-form
>
.wrap-on-mobile
>
:first-child
{
width
:
100%
;
margin-bottom
:
1em
;
font-weight
:
bold
;
}
}
.settings-form
p
.button-desc
{
...
...
Write
Preview
Supports
Markdown
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