diff --git a/Composer/packages/client/src/components/AppComponents/SideBar.tsx b/Composer/packages/client/src/components/AppComponents/SideBar.tsx index 38580cf7c4..d49cd4a2b9 100644 --- a/Composer/packages/client/src/components/AppComponents/SideBar.tsx +++ b/Composer/packages/client/src/components/AppComponents/SideBar.tsx @@ -32,7 +32,7 @@ const globalNav = css` `; const sideBar = (isExpand: boolean) => css` - width: ${isExpand ? '175' : '48'}px; + width: ${isExpand ? '200' : '48'}px; background-color: ${NeutralColors.gray20}; height: 100%; border-right: 1px solid ${NeutralColors.gray50}; diff --git a/Composer/packages/client/src/pages/setting/app-settings/AppSettings.tsx b/Composer/packages/client/src/pages/setting/app-settings/AppSettings.tsx index 8cdd682ac1..8f3df121f6 100644 --- a/Composer/packages/client/src/pages/setting/app-settings/AppSettings.tsx +++ b/Composer/packages/client/src/pages/setting/app-settings/AppSettings.tsx @@ -93,6 +93,16 @@ const AppSettings: React.FC = () => { return (
+
+

{formatMessage('Application Language settings')}

+ +

{formatMessage('Onboarding')}

= () => { onToggle={onCodeEditorChange('wordWrap')} />
-
-

{formatMessage('Application Language')}

- -

{formatMessage('Application Updates')}

}>{renderElectronSettings && } diff --git a/Composer/packages/client/src/pages/setting/app-settings/SettingDropdown.tsx b/Composer/packages/client/src/pages/setting/app-settings/SettingDropdown.tsx index 69ad3feffe..3aeefe8d55 100644 --- a/Composer/packages/client/src/pages/setting/app-settings/SettingDropdown.tsx +++ b/Composer/packages/client/src/pages/setting/app-settings/SettingDropdown.tsx @@ -4,17 +4,18 @@ /** @jsx jsx */ import { jsx } from '@emotion/core'; import React from 'react'; -import { Label } from 'office-ui-fabric-react/lib/Label'; import { useId } from '@uifabric/react-hooks'; import kebabCase from 'lodash/kebabCase'; import { Dropdown } from 'office-ui-fabric-react/lib/Dropdown'; +import { TooltipHost } from 'office-ui-fabric-react/lib/Tooltip'; +import { Icon } from 'office-ui-fabric-react/lib/Icon'; +import formatMessage from 'format-message'; import * as styles from './styles'; interface ISettingToggleProps { description: React.ReactChild; id?: string; - image: string; onChange: (key: string) => void; title: string; options: { key: string; text: string }[]; @@ -23,29 +24,31 @@ interface ISettingToggleProps { } const SettingDropdown: React.FC = (props) => { - const { id, title, description, dropdownWidth, image, onChange, options, selected } = props; + const { id, title, onChange, options, selected } = props; const uniqueId = useId(kebabCase(title)); + const onRenderLabel = (props) => { + return ( +
+
{props.label}
+ + + +
+ ); + }; + return (
- -
- -

{description}

-
-
- onChange(option?.key?.toString() ?? '')} - /> -
+ onChange(option?.key?.toString() ?? '')} + onRenderLabel={onRenderLabel} + />
); };