File tree Expand file tree Collapse file tree 10 files changed +35
-42
lines changed
Expand file tree Collapse file tree 10 files changed +35
-42
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,10 @@ export default function ComponentMap({
118118 minWidth : 60 ,
119119 maxWidth : 250 ,
120120 lineHeight : '18px' ,
121- zIndex : 100 ,
122121 pointerEvents : 'all !important' ,
122+ margin : 0 ,
123+ padding : 0 ,
124+ borderRadius : '8px' ,
123125 } ;
124126
125127 const scrollStyle : { } = {
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ const tooltipStyles = {
3333 ...defaultStyles ,
3434 minWidth : 60 ,
3535 lineHeight : '18px' ,
36- zIndex : 100 ,
3736 pointerEvents : 'all !important' ,
38- padding : '12px' ,
37+ padding : '8px' ,
38+ borderRadius : '8px' ,
3939} ;
4040
4141const BarGraph = ( props : BarGraphProps ) : JSX . Element => {
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ const radialGraph = (props) => {
3030 margin : 0 ,
3131 size : '75%' ,
3232 background : 'transparent' ,
33- // background: '#242529',
3433 image : props . overLimit
3534 ? 'https://static.vecteezy.com/system/resources/thumbnails/012/042/301/small/warning-sign-icon-transparent-background-free-png.png'
3635 : undefined ,
@@ -51,7 +50,7 @@ const radialGraph = (props) => {
5150 track : {
5251 background : '#161617' ,
5352 strokeWidth : '3%' ,
54- margin : 0 , // margin is in pixels
53+ margin : 0 ,
5554 dropShadow : {
5655 enabled : true ,
5756 top : - 3 ,
@@ -111,18 +110,18 @@ const radialGraph = (props) => {
111110 < div className = 'metric' >
112111 < ReactHover options = { optionsCursorTrueWithMargin } >
113112 < Trigger type = 'trigger' >
114- < div id = 'chart' >
113+ < div id = 'chart' className = 'chart-container' >
115114 < Charts
116115 options = { state . options }
117116 series = { state . series }
118117 type = 'radialBar'
119- height = { 350 }
120- width = { 350 }
118+ height = { 250 }
119+ width = { 250 }
121120 />
122121 </ div >
123122 </ Trigger >
124123 < Hover type = 'hover' >
125- < div style = { { zIndex : 1 , position : 'relative' , padding : '0.5rem 1rem' } } id = 'hover-box' >
124+ < div className = 'metric-tooltip' id = 'hover-box' >
126125 < p >
127126 < strong > { props . name } </ strong >
128127 </ p >
Original file line number Diff line number Diff line change 113113 height : 44px ;
114114 display : flex ;
115115 align-items : center ;
116- border-bottom : 1px solid #e5e7eb ;
117116 background-color : white ;
118117}
119118
Original file line number Diff line number Diff line change 77 background-color : white ;
88 max-width : 1200px ;
99 justify-content : space-around ;
10+ border-bottom : 1px solid #e5e7eb ;
1011}
1112
1213.routesForm {
6869
6970// bar graph background
7071.perf-rect {
71- fill : white ;
72+ fill : #f9fafb ;
73+ }
74+
75+ .bargraph-position {
76+ background-color : #f9fafb ;
7277}
Original file line number Diff line number Diff line change 6161 .main-navbar-container {
6262 border-bottom : 1px solid #e5e7eb ;
6363 background : white ;
64- padding : 5px 24px ;
64+ padding : 4. 5px 24px ;
6565 }
6666}
6767
6868// tool tip styles
6969.tooltip-header {
70- padding : 12px ;
70+ padding : 8 px 8 px 8 px 12px ;
7171 background-color : #14b8a6 ;
72+ border : 1px solid #0d9488 ;
7273 border-radius : 8px ;
73- border-bottom : 1px solid #e5e7eb ;
7474}
7575
7676.tooltip-title {
7777 margin : 0 ;
78- font-size : 16 px ;
78+ font-size : 14 px ;
7979 font-weight : 500 ;
8080 color : #f3f4f6 ;
8181}
8989}
9090
9191.tooltip-section {
92- padding : 12px ;
92+ padding : 8 px 12px ;
9393 border-bottom : 1px solid #e5e7eb ;
9494 transition : background-color 150ms ease ;
9595}
152152// Web Metrics Container
153153.web-metrics-container {
154154 display : grid ;
155- grid-template-columns : auto auto ;
156- justify-content : center ;
155+ grid-template-columns : repeat (3 , 1fr );
157156}
158157
159- // container for metrics
160158.metric {
161- min-height : 200px ;
162- min-width : 200px ;
163- }
164-
165- .bargraph {
166- position : relative ;
167- margin-top : 1rem ;
168- }
169-
170- .bar-graph-axis {
171- stroke : cornflowerblue ;
159+ width : 100% ;
160+ display : flex ;
161+ justify-content : center ;
162+ align-items : center ;
172163}
173164
174165#hover-box {
175- max-width : 230 px ;
166+ max-width : 250 px ;
176167 background-color : #51565e ;
177- border-radius : 5 px ;
168+ border-radius : 8 px ;
178169 color : white ;
179170}
180171
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const metrics = {};
1919function setupKeepAlive ( ) {
2020 //ellie
2121 // Create an alarm that triggers every 4.9 minutes (under the 5-minute limit)
22- chrome . alarms . create ( 'keepAlive' , { periodInMinutes : 4.9 } ) ;
22+ chrome . alarms . create ( 'keepAlive' , { periodInMinutes : 1 } ) ;
2323
2424 chrome . alarms . onAlarm . addListener ( ( alarm ) => {
2525 if ( alarm . name === 'keepAlive' ) {
@@ -30,12 +30,9 @@ function setupKeepAlive() {
3030}
3131// Ping the service worker to keep it alive
3232function pingServiceWorker ( ) {
33- chrome . runtime . getBackgroundPage ( ( bgPage ) => {
34- if ( bgPage ) {
35- console . log ( 'Service worker is alive' ) ;
36- } else {
37- console . warn ( 'Failed to ping the service worker.' ) ;
38- }
33+ // Use a lightweight API call to keep the service worker active
34+ chrome . runtime . getPlatformInfo ( ( ) => {
35+ console . log ( 'Service worker pinged successfully' ) ;
3936 } ) ;
4037}
4138
Original file line number Diff line number Diff line change 44 < meta charset ="UTF-8 " />
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
66 < meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
7- < title > Reactime v26</ title >
7+ < title > Reactime v26.0 </ title >
88 </ head >
99
1010 < body >
Original file line number Diff line number Diff line change 11{
22 "name" : " Reactime" ,
3- "version" : " 26.0.0 " ,
3+ "version" : " 26.0" ,
44 "devtools_page" : " devtools.html" ,
55 "description" : " A Chrome extension that helps debug React applications by memorizing the state of components with every render." ,
66 "manifest_version" : 3 ,
Original file line number Diff line number Diff line change 44 < meta charset ="UTF-8 " />
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
66 < meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
7- < title style ="color: #ffffff "> Reactime 26 .0</ title >
7+ < title style ="color: #ffffff "> Reactime v26 .0</ title >
88 </ head >
99
1010 < body >
You can’t perform that action at this time.
0 commit comments