@@ -20,41 +20,46 @@ export function Settings() {
2020 < PageLayout >
2121 < div class = "settings-tab" >
2222 < form >
23- < Checkbox
24- checked = { highlightUpdates }
25- onChange = { ( ) => {
26- const value = ! store . profiler . highlightUpdates . value ;
27- store . profiler . highlightUpdates . value = value ;
28- store . notify (
29- value ? "start-highlight-updates" : "stop-highlight-updates" ,
30- null ,
31- ) ;
32- } }
33- testId = "toggle-highlight-updates"
34- >
35- Highlight updates
36- </ Checkbox >
37- < div >
38- < p class = "settings-tab-description" >
39- Visualize updates by highlighting each component that updated in
40- the page.
41- </ p >
23+ < div class = "settings-checkbox-setting" >
24+ < Checkbox
25+ checked = { highlightUpdates }
26+ onChange = { ( ) => {
27+ const value = ! store . profiler . highlightUpdates . value ;
28+ store . profiler . highlightUpdates . value = value ;
29+ store . notify (
30+ value ? "start-highlight-updates" : "stop-highlight-updates" ,
31+ null ,
32+ ) ;
33+ } }
34+ testId = "toggle-highlight-updates"
35+ >
36+ Highlight updates
37+ </ Checkbox >
38+ < div >
39+ < p class = "settings-tab-description" >
40+ Visualize updates by highlighting each component that updated in
41+ the page.
42+ </ p >
43+ </ div >
4244 </ div >
43- < Checkbox
44- checked = { renderReasons }
45- onChange = { ( ) =>
46- store . profiler . setRenderReasonCapture ( ! renderReasons )
47- }
48- testId = "toggle-render-reason"
49- >
50- Capture render reasons
51- </ Checkbox >
52- < div class = "settings-tab-message" >
53- < Message type = "info" >
54- All props, state, and hooks of the current node will be compared
55- to the previous node to determine what changed between renders.
56- Timings may be less accurate because of that.
57- </ Message >
45+ < div class = "settings-checkbox-setting" >
46+ < Checkbox
47+ checked = { renderReasons }
48+ onChange = { ( ) =>
49+ store . profiler . setRenderReasonCapture ( ! renderReasons )
50+ }
51+ testId = "toggle-render-reason"
52+ >
53+ Capture render reasons
54+ </ Checkbox >
55+
56+ < div class = "settings-tab-message" >
57+ < Message type = "info" >
58+ All props, state, and hooks of the current node will be compared
59+ to the previous node to determine what changed between renders.
60+ Timings may be less accurate because of that.
61+ </ Message >
62+ </ div >
5863 </ div >
5964
6065 < label class = "settings-tab-label" > Theme:</ label >
0 commit comments