diff --git a/packages/app/src/pages/settings/index.jsx b/packages/app/src/pages/settings/index.jsx index 1b05a6c2..f3d57117 100755 --- a/packages/app/src/pages/settings/index.jsx +++ b/packages/app/src/pages/settings/index.jsx @@ -304,9 +304,9 @@ const SettingItem = (props) => { ...props.ctx, } - return
-
-
+ return
+
+

{Icons[item.icon] ? React.createElement(Icons[item.icon]) : null} @@ -323,7 +323,7 @@ const SettingItem = (props) => {

{item.extraActions && -
+
{item.extraActions.map((action, index) => { if (typeof action === "function") { return React.createElement(action, { @@ -351,7 +351,7 @@ const SettingItem = (props) => {
}
-
+
{ loading @@ -398,18 +398,20 @@ const SettingGroup = React.memo((props) => { return null } - return
-

- { - fromDecoratorIcon ? React.createElement(Icons[fromDecoratorIcon]) : null - } - + return
+
+

{ - t => t(fromDecoratorTitle ?? groupKey) + fromDecoratorIcon ? React.createElement(Icons[fromDecoratorIcon]) : null } - -

-
+ + { + t => t(fromDecoratorTitle ?? groupKey) + } + +

+
+
{ settings.map((item) => div { - margin-bottom: 25px; - } - } - } + padding: 20px; - .settingItem { - padding: 0 20px; + gap: 20px; - >div { - margin-bottom: 10px; - } + .settings_content_group_header { + position: absolute; - .header { - display: inline-flex; - flex-direction: row; - align-items: center; - justify-content: space-between; width: 100%; - .title { - display: flex; - align-items: center; + top: 0; + left: 0; + + h1, + h2, + h3, + h4, + h5, + h6 { + margin: 0; color: var(--background-color-contrast); - - h1, - h2, - h3, - h4, - h5, - h6 { - margin: 0; - color: var(--background-color-contrast); - } - - p { - font-size: 11px; - color: var(--background-color-contrast); - margin: 0; - } - - >div { - margin-right: 10px; - } } - .extraActions { - display: inline-flex; - align-items: center; + //-webkit-box-shadow: @card-shadow; + //-moz-box-shadow: @card-shadow; + //box-shadow: @card-shadow; - >div { - margin-right: 10px; - } - } + padding: 20px; + + border-radius: 12px; } - .component { + .settings_content_group_settings { display: flex; flex-direction: column; - --ignore-dragger: true; - padding: 0 20px; + margin-top: 50px; - span { - color: var(--background-color-contrast); - } + gap: 30px; - >div { - margin-bottom: 10px; + .settings_content_group_item { + display: flex; + flex-direction: column; + + padding: 0 20px; + + .settings_content_group_item_header { + display: inline-flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + + width: 100%; + + .settings_content_group_item_header_title { + display: flex; + align-items: center; + color: var(--background-color-contrast); + + h1, + h2, + h3, + h4, + h5, + h6 { + margin: 0; + color: var(--background-color-contrast); + } + + p { + font-size: 11px; + color: var(--background-color-contrast); + margin: 0; + } + + >div { + margin-right: 10px; + } + } + + .settings_content_group_item_header_actions { + display: inline-flex; + align-items: center; + + gap: 10px; + + .ant-btn { + background-color: var(--background-color-primary-2); + } + + .ant-btn:not([disabled]) { + &:hover { + color: var(--colorPrimary); + border: 1px solid var(--colorPrimary); + } + } + } + } + + .settings_content_group_item_component { + display: flex; + flex-direction: column; + + --ignore-dragger: true; + padding: 6px 20px; + + span { + color: var(--background-color-contrast); + } + } } } }