Skip to content

Commit b1a9f1a

Browse files
committed
Add second container with UI.Card to Push Notifications panel for two-layer hover effects matching other collapsible sections
1 parent 272dd30 commit b1a9f1a

2 files changed

Lines changed: 29 additions & 19 deletions

File tree

src/components/settings/panels/PushNotificationPanel.styles.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ import styled from 'styled-components';
33
export const PanelWrapper = styled.div`
44
/* Keep it simple to match other panels */
55
background: transparent;
6+
width: 100%;
7+
8+
/* Remove ant-card default styles since we're inside a Card */
9+
.ant-card-body {
10+
padding: 0 !important;
11+
display: block !important;
12+
}
613
714
/* Style dividers to match cyan theme */
815
.ant-divider {

src/components/settings/panels/PushNotificationPanel.tsx

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import useGenericSettings from '@app/hooks/useGenericSettings';
99
import { SettingsGroupType } from '@app/types/settings.types';
1010
import { LiquidBlueButton } from '@app/components/common/LiquidBlueButton';
1111
import * as S from './PushNotificationPanel.styles';
12+
import * as UI from '@app/pages/uiComponentsPages/UIComponentsPage.styles';
1213

1314
const defaultPushSettings = {
1415
enabled: false,
@@ -108,23 +109,24 @@ const PushNotificationPanel: React.FC = () => {
108109
)}
109110

110111
<Spin spinning={loading}>
111-
<S.PanelWrapper>
112-
<Form
113-
form={form}
114-
layout="vertical"
115-
onValuesChange={handleValuesChange}
116-
initialValues={settings || {}}
117-
onFinish={() => {
118-
setIsUserEditing(false);
119-
}}
120-
style={{
121-
padding: 0,
122-
margin: 0,
123-
background: 'transparent',
124-
border: 'none'
125-
}}
126-
colon={false}
127-
>
112+
<UI.Card>
113+
<S.PanelWrapper>
114+
<Form
115+
form={form}
116+
layout="vertical"
117+
onValuesChange={handleValuesChange}
118+
initialValues={settings || {}}
119+
onFinish={() => {
120+
setIsUserEditing(false);
121+
}}
122+
style={{
123+
padding: 0,
124+
margin: 0,
125+
background: 'transparent',
126+
border: 'none'
127+
}}
128+
colon={false}
129+
>
128130
{/* Main Configuration */}
129131
<Divider orientation="left" style={{
130132
borderColor: 'rgba(82, 196, 255, 0.3)',
@@ -411,8 +413,9 @@ const PushNotificationPanel: React.FC = () => {
411413
</LiquidBlueButton>
412414
</div>
413415
</Form.Item>
414-
</Form>
415-
</S.PanelWrapper>
416+
</Form>
417+
</S.PanelWrapper>
418+
</UI.Card>
416419
</Spin>
417420
</>
418421
);

0 commit comments

Comments
 (0)