Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
actual-vt-capstone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danieljk
actual-vt-capstone
Commits
918b80be
Unverified
Commit
918b80be
authored
2 years ago
by
Jed Fox
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Center the settings UI when the sidebar is collapsed (#458)
* Center the settings UI when the sidebar is collapsed * Fix lint
parent
88f6f1e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/desktop-client/src/components/settings/index.js
+45
-38
45 additions, 38 deletions
packages/desktop-client/src/components/settings/index.js
with
45 additions
and
38 deletions
packages/desktop-client/src/components/settings/index.js
+
45
−
38
View file @
918b80be
...
...
@@ -13,6 +13,7 @@ import tokens from 'loot-design/src/tokens';
import
{
withThemeColor
}
from
'
loot-design/src/util/withThemeColor
'
;
import
useServerVersion
from
'
../../hooks/useServerVersion
'
;
import
{
isMobile
}
from
'
../../util
'
;
import
{
Page
}
from
'
../Page
'
;
import
EncryptionSettings
from
'
./Encryption
'
;
import
ExportBudget
from
'
./Export
'
;
...
...
@@ -62,48 +63,54 @@ function Settings({
},
[
loadPrefs
]);
return
(
<
Page
title
=
"
Settings
"
>
<
View
style
=
{{
flexShrink
:
0
,
gap
:
30
,
maxWidth
:
600
}}
>
{
/* The only spot to close a budget on mobile */
}
<
Section
title
=
"
Budget
"
style
=
{
css
(
media
(
`(min-width:
${
tokens
.
breakpoint_medium
}
)`
,
{
display
:
'
none
'
})
)}
>
<
FormField
>
<
FormLabel
title
=
"
Name
"
/>
<
Input
value
=
{
prefs
.
budgetName
}
disabled
style
=
{{
color
:
'
#999
'
}}
/
>
<
/FormField
>
<
Button
onClick
=
{
closeBudget
}
>
Close
Budget
<
/Button
>
<
/Section
>
<
View
style
=
{{
marginInline
:
globalPrefs
.
floatingSidebar
&&
!
isMobile
()
?
'
auto
'
:
0
}}
>
<
Page
title
=
"
Settings
"
>
<
View
style
=
{{
flexShrink
:
0
,
gap
:
30
}}
>
{
/* The only spot to close a budget on mobile */
}
<
Section
title
=
"
Budget
"
style
=
{
css
(
media
(
`(min-width:
${
tokens
.
breakpoint_medium
}
)`
,
{
display
:
'
none
'
})
)}
>
<
FormField
>
<
FormLabel
title
=
"
Name
"
/>
<
Input
value
=
{
prefs
.
budgetName
}
disabled
style
=
{{
color
:
'
#999
'
}}
/
>
<
/FormField
>
<
Button
onClick
=
{
closeBudget
}
>
Close
Budget
<
/Button
>
<
/Section
>
<
About
/>
<
About
/>
{
!
Platform
.
isBrowser
&&
(
<
GlobalSettings
globalPrefs
=
{
globalPrefs
}
saveGlobalPrefs
=
{
this
.
props
.
saveGlobalPrefs
}
/
>
)}
{
!
Platform
.
isBrowser
&&
(
<
GlobalSettings
globalPrefs
=
{
globalPrefs
}
saveGlobalPrefs
=
{
this
.
props
.
saveGlobalPrefs
}
/
>
)}
<
FormatSettings
prefs
=
{
prefs
}
savePrefs
=
{
savePrefs
}
/
>
<
EncryptionSettings
prefs
=
{
prefs
}
pushModal
=
{
pushModal
}
/
>
<
ExportBudget
prefs
=
{
prefs
}
/
>
<
FormatSettings
prefs
=
{
prefs
}
savePrefs
=
{
savePrefs
}
/
>
<
EncryptionSettings
prefs
=
{
prefs
}
pushModal
=
{
pushModal
}
/
>
<
ExportBudget
prefs
=
{
prefs
}
/
>
<
AdvancedToggle
>
<
AdvancedAbout
prefs
=
{
prefs
}
/
>
<
ResetCache
/>
<
ResetSync
resetSync
=
{
resetSync
}
/
>
<
/AdvancedToggle
>
<
/View
>
<
/Page
>
<
AdvancedToggle
>
<
AdvancedAbout
prefs
=
{
prefs
}
/
>
<
ResetCache
/>
<
ResetSync
resetSync
=
{
resetSync
}
/
>
<
/AdvancedToggle
>
<
/View
>
<
/Page
>
<
/View
>
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment