Skip to content

Commit 925248c

Browse files
committed
Fix padding consistency on Nostr Statistics page - remove extra margin-top from Tables component
1 parent f44a3ee commit 925248c

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

src/components/header/Header.styles.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import { BaseCol } from '../common/BaseCol/BaseCol';
88
export const HeaderActionWrapper = styled.div`
99
cursor: pointer;
1010
position: relative;
11-
display: inline-block; /* Keep compact by default */
12-
max-width: 350px; /* Fixed max width at 350px to match search bar */
13-
width: 100%; /* Allow full width within max constraint */
14-
11+
display: inline-flex; /* Use inline-flex for better alignment */
12+
align-items: center;
13+
justify-content: center;
14+
/* Remove width constraints to allow natural sizing */
15+
1516
/* Remove any potential background or box behind header buttons */
1617
background: transparent !important;
1718
background-color: transparent !important;
@@ -101,8 +102,8 @@ export const ProfileColumn = styled(BaseCol)<ProfileColumn>`
101102
css`
102103
/* Remove background and padding that creates unwanted box behind buttons */
103104
background-color: transparent !important;
104-
/* Remove padding to prevent spacing issues */
105-
padding: 0 !important;
105+
/* Add padding to the right to prevent settings gear from touching boundary */
106+
padding: 0 1.5rem 0 0 !important;
106107
/* Ensure the buttons are not affected */
107108
display: flex;
108109
align-items: center;
@@ -118,6 +119,8 @@ export const ProfileColumn = styled(BaseCol)<ProfileColumn>`
118119
width: 100% !important;
119120
display: flex !important;
120121
justify-content: flex-end !important;
122+
/* Add padding to the right to prevent settings gear from touching boundary */
123+
padding-right: 1.5rem !important;
121124
}
122125
123126
/* Additional override for all screen sizes - remove any possible background */
@@ -129,6 +132,8 @@ export const ProfileColumn = styled(BaseCol)<ProfileColumn>`
129132
border: none !important;
130133
/* Ensure right alignment */
131134
margin-left: auto !important;
135+
/* Add padding to the right for all screen sizes */
136+
padding-right: 1.5rem !important;
132137
`;
133138

134139
export const GHButton = styled(GitHubButton)`

src/components/header/layouts/DesktopHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const DesktopHeader: React.FC<DesktopHeaderProps> = ({ isTwoColumnsLayout
3636
{leftSide}
3737

3838
<S.ProfileColumn xl={8} xxl={7} $isTwoColumnsLayout={isTwoColumnsLayout}>
39-
<BaseRow align="middle" justify="end" gutter={[10, 0]}>
39+
<BaseRow align="middle" justify="end" gutter={[20, 0]}>
4040
<BaseCol>
4141
<HeaderFullscreen />
4242
</BaseCol>

src/components/tables/Tables/Tables.styles.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import styled from 'styled-components';
22
import { BaseCard as CommonCard } from '@app/components/common/BaseCard/BaseCard';
33
const borderRad = '12px';
44
export const TablesWrapper = styled.div`
5-
margin-top: 1.875rem;
6-
75
/* Main table styling with glass morphism and 3D effects */
86
.ant-table-wrapper {
97
background: linear-gradient(135deg,

0 commit comments

Comments
 (0)