Skip to content

Commit deb1d8a

Browse files
committed
fixed padding for tool tip display
1 parent 22f9055 commit deb1d8a

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

src/app/components/StateRoute/ComponentMap/ToolTipDataDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ToolTipDataDisplay = ({ data }) => {
77
const jsonTheme = {
88
scheme: 'custom',
99
base00: 'transparent',
10-
base0B: '#14b8a6', // Teal for strings
10+
base0B: '#ffff', // white for strings
1111
base0D: '#60a5fa', // Blue for keys
1212
base09: '#f59e0b', // Orange for numbers
1313
base0C: '#EF4444', // red for nulls

src/app/styles/layout/_stateContainer.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@
9999
}
100100

101101
// tool tip styles
102+
.tooltip-header {
103+
padding: 12px;
104+
background-color: #1f2937;
105+
border-bottom: 1px solid rgba(107, 114, 128, 0.2);
106+
}
107+
108+
.tooltip-title {
109+
margin: 0;
110+
font-size: 16px;
111+
font-weight: 500;
112+
color: #f9fafb;
113+
}
114+
102115
.tooltip-container {
103116
width: 300px;
104117
background-color: #111827;
@@ -109,11 +122,10 @@
109122
font-family: 'Outfit', sans-serif;
110123
color: #f9fafb;
111124
overflow: hidden;
112-
margin: 4px 0;
113125
}
114126

115127
.tooltip-section {
116-
padding: 12px 16px;
128+
padding: 12px;
117129
border-bottom: 1px solid rgba(107, 114, 128, 0.2);
118130
}
119131

@@ -125,7 +137,6 @@
125137
font-size: 14px;
126138
font-weight: 500;
127139
color: #14b8a6;
128-
margin-bottom: 8px;
129140
}
130141

131142
.tooltip-content {
@@ -143,7 +154,6 @@
143154
}
144155

145156
.tooltip-data {
146-
padding-left: 12px;
147157
border-left: 2px solid rgba(20, 184, 166, 0.4);
148158
}
149159

0 commit comments

Comments
 (0)