Skip to content

Commit 67c433c

Browse files
committed
Remove button-like styling from storage size display on Nostr Statistics page - now shows as simple colored text
1 parent 7bd4285 commit 67c433c

2 files changed

Lines changed: 5 additions & 17 deletions

File tree

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={[5, 0]}>
39+
<BaseRow align="middle" justify="end" gutter={[6, 0]}>
4040
<BaseCol>
4141
<HeaderFullscreen />
4242
</BaseCol>

src/components/tables/editableTable/EditableTable.tsx

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -164,26 +164,14 @@ const EditableTable: React.FC<EditableTableProps> = ({
164164
const size = text.toFixed(3);
165165
const intensity = Math.min(text / 10, 1); // Scale intensity based on size
166166
return (
167-
<div style={{
168-
display: 'inline-block',
169-
padding: '4px 12px',
170-
background: `linear-gradient(135deg,
171-
rgba(0, 178, 178, ${0.08 + intensity * 0.08}) 0%,
172-
rgba(0, 139, 178, ${0.04 + intensity * 0.04}) 100%)`,
173-
border: `1px solid rgba(0, 178, 178, ${0.2 + intensity * 0.2})`,
174-
borderRadius: '8px',
175-
color: 'rgba(0, 178, 178, 0.85)',
167+
<span style={{
168+
color: `rgba(0, 178, 178, ${0.85 + intensity * 0.15})`,
176169
fontWeight: 600,
177170
fontSize: '0.9rem',
178-
boxShadow: `
179-
0 2px 8px rgba(0, 178, 178, ${0.15 * intensity}),
180-
inset 0 1px 2px rgba(0, 178, 178, ${0.15 + intensity * 0.15})`,
181-
textShadow: `0 0 ${2 + intensity * 2}px rgba(0, 178, 178, 0.4)`,
182-
transform: 'translateZ(0)',
183-
transition: 'all 0.3s ease'
171+
textShadow: `0 0 ${2 + intensity * 4}px rgba(0, 178, 178, 0.4)`
184172
}}>
185173
{size} GB
186-
</div>
174+
</span>
187175
);
188176
},
189177
sorter: true,

0 commit comments

Comments
 (0)