Skip to content

Commit 1d3ae98

Browse files
authored
Tweaked some right-panel paddings to better match Chrome (facebook#816)
1 parent 36e76c5 commit 1d3ae98

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

frontend/DataView/DataView.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ const previewStyle = (theme: Theme) => ({
323323
});
324324

325325
const emptyStyle = (theme: Theme) => ({
326-
marginLeft: 10,
326+
marginLeft: '0.75rem',
327327
padding: '0 5px',
328328
color: theme.base04,
329329
fontFamily: sansSerif.family,
@@ -334,7 +334,7 @@ const emptyStyle = (theme: Theme) => ({
334334
const missingStyle = (theme: Theme) => ({
335335
fontSize: sansSerif.sizes.normal,
336336
fontWeight: 'bold',
337-
marginLeft: 10,
337+
marginLeft: '0.75rem',
338338
padding: '2px 5px',
339339
color: theme.base03,
340340
});
@@ -368,15 +368,15 @@ var styles = {
368368
listStyle: 'none',
369369
margin: 0,
370370
padding: 0,
371-
marginLeft: 10,
371+
marginLeft: '0.75rem',
372372
},
373373

374374
children: {
375375
},
376376

377377
opener: {
378378
cursor: 'pointer',
379-
marginLeft: -8,
379+
marginLeft: -10,
380380
paddingRight: 3,
381381
position: 'absolute',
382382
top: 4,

frontend/Panel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ var panelRNStyle = (bridge, supportsMeasure, theme) => (node, id) => {
384384

385385
const containerStyle = (theme: Theme) => ({
386386
borderTop: `1px solid ${theme.base01}`,
387-
padding: '0.5rem',
387+
padding: '0.25rem',
388388
marginBottom: '0.25rem',
389389
flexShrink: 0,
390390
});

frontend/detail_pane/DetailPaneSection.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ DetailPaneSection.contextTypes = {
3838

3939
const sectionStyle = (theme: Theme) => ({
4040
borderTop: `1px solid ${theme.base01}`,
41-
padding: '0.5rem',
41+
padding: '0.25rem',
4242
flexShrink: 0,
4343
});
4444

4545
var styles = {
4646
title: {
4747
display: 'inline-block',
48-
marginBottom: '0.5rem',
4948
marginRight: '0.25rem',
5049
},
5150
};

plugins/ReactNativeStyle/AutoSizeInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const inputStyle = (text: ?string) => ({
166166
boxSizing: 'content-box',
167167
border: 'none',
168168
padding: '1px 2px',
169-
marginLeft: 6,
169+
marginLeft: '0.75rem',
170170
outline: 'none',
171171
width: '0px',
172172
minWidth: text ? '0' : '1rem', // Make it easier to click initially

0 commit comments

Comments
 (0)