diff --git a/src/components/sidebarLeft/tabs/privacy/addToGroups.ts b/src/components/sidebarLeft/tabs/privacy/addToGroups.ts index 7c1966f0..a7042c10 100644 --- a/src/components/sidebarLeft/tabs/privacy/addToGroups.ts +++ b/src/components/sidebarLeft/tabs/privacy/addToGroups.ts @@ -7,6 +7,7 @@ import { SliderSuperTabEventable } from "../../../sliderTab"; import PrivacySection from "../../../privacySection"; import { LangPackKey } from "../../../../lib/langPack"; +import { PrivacyType } from "../../../../lib/appManagers/appPrivacyManager"; export default class AppPrivacyAddToGroupsTab extends SliderSuperTabEventable { protected init() { @@ -20,7 +21,8 @@ export default class AppPrivacyAddToGroupsTab extends SliderSuperTabEventable { inputKey: 'inputPrivacyKeyChatInvite', captions: [caption, caption, caption], exceptionTexts: ['PrivacySettingsController.NeverAllow', 'PrivacySettingsController.AlwaysAllow'], - appendTo: this.scrollable + appendTo: this.scrollable, + skipTypes: [PrivacyType.Nobody] }); } } diff --git a/src/scss/partials/_leftSidebar.scss b/src/scss/partials/_leftSidebar.scss index 013763f9..350e75a5 100644 --- a/src/scss/partials/_leftSidebar.scss +++ b/src/scss/partials/_leftSidebar.scss @@ -1002,12 +1002,11 @@ .privacy-container { .sidebar-left-section.no-delimiter { - padding-bottom: 0; padding-top: .75rem; } - .sidebar-left-section:last-child { - padding-top: .4375rem; + .sidebar-left-section { + padding: 0 0 .5rem; } /* .privacy-navigation-container {