From bd536c0eaf6f359a9a2a51802d66bcbdcc176e52 Mon Sep 17 00:00:00 2001 From: "julia.kirschenheuter" Date: Tue, 11 Oct 2022 08:58:26 +0200 Subject: Create modal window for contacts settings Signed-off-by: julia.kirschenheuter --- src/components/AppNavigation/ContactsSettings.vue | 177 +++++++++++++++++++++ src/components/AppNavigation/RootNavigation.vue | 49 ++++-- .../AppNavigation/Settings/SettingsAddressbook.vue | 10 +- src/components/AppNavigation/SettingsSection.vue | 125 --------------- src/models/constants.d.ts | 1 + src/models/constants.ts | 3 + 6 files changed, 224 insertions(+), 141 deletions(-) create mode 100644 src/components/AppNavigation/ContactsSettings.vue delete mode 100644 src/components/AppNavigation/SettingsSection.vue (limited to 'src') diff --git a/src/components/AppNavigation/ContactsSettings.vue b/src/components/AppNavigation/ContactsSettings.vue new file mode 100644 index 00000000..a355bde3 --- /dev/null +++ b/src/components/AppNavigation/ContactsSettings.vue @@ -0,0 +1,177 @@ + + + + + + + diff --git a/src/components/AppNavigation/RootNavigation.vue b/src/components/AppNavigation/RootNavigation.vue index 62e9a1c3..9a91fd00 100644 --- a/src/components/AppNavigation/RootNavigation.vue +++ b/src/components/AppNavigation/RootNavigation.vue @@ -177,33 +177,43 @@ + + @@ -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 29f6c378..b3d50408 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 2a33fd4a..00000000 --- a/src/components/AppNavigation/SettingsSection.vue +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - diff --git a/src/models/constants.d.ts b/src/models/constants.d.ts index 7364d213..0151fa6d 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 dde4f8df..5624a353 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 -- cgit v1.2.3