Skip to content

Commit 356ba1c

Browse files
committed
開発者オーバレイのカード高さを調整
1 parent 7a89664 commit 356ba1c

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/components/DevOverlay.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,13 @@ const styles = StyleSheet.create({
133133
minHeight: 82,
134134
borderRadius: 18,
135135
paddingHorizontal: 12,
136-
paddingVertical: 10,
136+
paddingTop: 8,
137+
paddingBottom: 8,
137138
borderWidth: 1,
138139
borderColor: PANEL_BORDER,
139140
backgroundColor: 'rgba(9, 14, 28, 0.7)',
140-
justifyContent: 'space-between',
141+
justifyContent: 'flex-start',
142+
gap: 6,
141143
},
142144
metricLabel: {
143145
color: LABEL_COLOR,
@@ -161,6 +163,9 @@ const styles = StyleSheet.create({
161163
fontSize: 11,
162164
lineHeight: 14,
163165
},
166+
metricHeader: {
167+
gap: 2,
168+
},
164169
footerText: {
165170
color: 'rgba(148, 163, 184, 0.92)',
166171
fontSize: 10,
@@ -243,7 +248,7 @@ const MetricCard: React.FC<MetricCardProps> = ({
243248
metaStyle,
244249
}) => (
245250
<View style={[styles.metricCard, style]}>
246-
<View>
251+
<View style={styles.metricHeader}>
247252
<Typography style={[styles.metricLabel, labelStyle]}>{label}</Typography>
248253
<Typography style={[styles.metricValue, valueStyle]} testID={valueTestID}>
249254
{value}
@@ -316,18 +321,20 @@ const DevOverlay: React.FC = () => {
316321
const chartShellStyle = isLandscape
317322
? {
318323
paddingHorizontal: 10,
319-
paddingVertical: 8,
324+
paddingTop: 8,
325+
paddingBottom: 6,
320326
borderRadius: 16,
321-
minHeight: 76,
327+
minHeight: 64,
322328
}
323329
: null;
324330
const chartValueStyle = isLandscape ? { fontSize: 12, lineHeight: 15 } : null;
325331
const metricCardStyle = isLandscape
326332
? {
327-
minHeight: 68,
333+
minHeight: 56,
328334
borderRadius: 16,
329335
paddingHorizontal: 10,
330-
paddingVertical: 8,
336+
paddingTop: 6,
337+
paddingBottom: 4,
331338
}
332339
: null;
333340
const metricLabelStyle = isLandscape

0 commit comments

Comments
 (0)