diff --git a/src/components/AppNavigation/ContactsSettings.vue b/src/components/AppNavigation/ContactsSettings.vue new file mode 100644 index 000000000..a355bde38 --- /dev/null +++ b/src/components/AppNavigation/ContactsSettings.vue @@ -0,0 +1,177 @@ + + + + + + + + + {{ t('contacts', 'Update avatars from social media') }} + {{ t('contacts', '(refreshed once per week)') }} + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/AppNavigation/RootNavigation.vue b/src/components/AppNavigation/RootNavigation.vue index 62e9a1c37..9a91fd000 100644 --- a/src/components/AppNavigation/RootNavigation.vue +++ b/src/components/AppNavigation/RootNavigation.vue @@ -177,33 +177,43 @@ + - - - + + + + + + {{ CONTACTS_SETTINGS }} + + + @@ -471,4 +488,10 @@ $caption-padding: 22px; opacity: .7; font-weight: bold; } +.contacts-settings { + padding: calc(var(--default-grid-baseline, 4px)*2); +} +.contacts-settings-button { + width: 100%; +} diff --git a/src/components/AppNavigation/Settings/SettingsAddressbook.vue b/src/components/AppNavigation/Settings/SettingsAddressbook.vue index 29f6c3786..b3d504084 100644 --- a/src/components/AppNavigation/Settings/SettingsAddressbook.vue +++ b/src/components/AppNavigation/Settings/SettingsAddressbook.vue @@ -305,6 +305,7 @@ export default { align-items: center; white-space: nowrap; text-overflow: ellipsis; + padding: 5px 0; > .addressbook__name { + a, @@ -344,9 +345,9 @@ export default { } .settings-addressbook-list { display: flex; - gap: 4px; - li { - width: calc(100% - 44px); + width: 100%; + .material-design-icon { + justify-content: flex-start; } } .addressbook__share { @@ -354,4 +355,7 @@ export default { border: none; box-shadow: none; } +.addressbook-shares { + padding-top: 10px; +} diff --git a/src/components/AppNavigation/SettingsSection.vue b/src/components/AppNavigation/SettingsSection.vue deleted file mode 100644 index 2a33fd4a8..000000000 --- a/src/components/AppNavigation/SettingsSection.vue +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - {{ t('contacts', 'Update avatars from social media') }} - {{ t('contacts', '(refreshed once per week)') }} - - - - - {{ t('contacts', 'Address books') }} - - - - - - - - - - - - diff --git a/src/models/constants.d.ts b/src/models/constants.d.ts index 7364d213e..0151fa6d7 100644 --- a/src/models/constants.d.ts +++ b/src/models/constants.d.ts @@ -32,6 +32,7 @@ export declare const GROUP_RECENTLY_CONTACTED: DefaultGroup; export declare const CHART_ALL_CONTACTS: DefaultChart; export declare const ROUTE_CIRCLE = "circle"; export declare const ROUTE_CHART = "chart"; +export declare const CONTACTS_SETTINGS: DefaultGroup; export declare const ELLIPSIS_COUNT = 5; export declare const CIRCLE_DESC: string; export declare const CIRCLES_MEMBER_TYPES: { diff --git a/src/models/constants.ts b/src/models/constants.ts index dde4f8df8..5624a3530 100644 --- a/src/models/constants.ts +++ b/src/models/constants.ts @@ -45,6 +45,9 @@ export const CHART_ALL_CONTACTS: DefaultChart = t('contacts', 'Organization char export const ROUTE_CIRCLE = 'circle' export const ROUTE_CHART = 'chart' +//Contact settings +export const CONTACTS_SETTINGS: DefaultGroup = t('contacts', 'Contacts settings') + // Default max number of items to show in the navigation export const ELLIPSIS_COUNT = 5