Skip to content

Commit b0028aa

Browse files
committed
chore(demo): tweak ui
1 parent b6db976 commit b0028aa

8 files changed

Lines changed: 22 additions & 24 deletions

File tree

examples/build.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ Tooltip should explain each IAM type.
473473
Aliases Section (placed after Send In-App Message):
474474

475475
- Section title: "Aliases" with info icon for tooltip
476-
- List showing key-value pairs (read-only, no delete icons)
477-
- Each item shows: Label | ID
476+
- Stacked key-value list (read-only, no delete icons)
477+
- Each item shows Label on top, ID below (see styles.md "Stacked" list layout)
478478
- Filter out "external_id" and "onesignal_id" from display (these are special)
479479
- "No Aliases Added" text when empty
480480
- ADD button -> PairInputModal with empty Label and ID fields on the same row (single add)

examples/demo/src/components/ListWidgets.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,20 +187,21 @@ const styles = StyleSheet.create({
187187
pairRow: {
188188
flexDirection: 'row',
189189
alignItems: 'center',
190-
paddingVertical: 8,
190+
paddingVertical: 4,
191+
paddingHorizontal: 4,
191192
},
192193
pairStackedContent: {
193194
flex: 1,
194195
marginRight: 8,
195196
},
196197
pairStackedKey: {
197-
fontSize: 15,
198+
fontSize: 14,
198199
color: AppColors.osGrey700,
199200
fontWeight: '500',
200201
marginBottom: 2,
201202
},
202203
pairStackedValue: {
203-
fontSize: 14,
204+
fontSize: 12,
204205
color: AppColors.osGrey600,
205206
},
206207
pairKey: {
@@ -223,32 +224,32 @@ const styles = StyleSheet.create({
223224
singleRow: {
224225
flexDirection: 'row',
225226
alignItems: 'center',
226-
paddingVertical: 8,
227+
paddingVertical: 4,
228+
paddingHorizontal: 4,
227229
},
228230
singleValue: {
229231
flex: 1,
230232
fontSize: 14,
231233
color: AppColors.osGrey700,
232234
},
233235
emptyContainer: {
234-
paddingVertical: 8,
236+
paddingVertical: 12,
235237
alignItems: 'center',
236238
},
237239
emptyText: {
238240
fontSize: 14,
239241
color: AppColors.osGrey600,
240-
fontStyle: 'italic',
241242
},
242243
divider: {
243244
height: 1,
244245
backgroundColor: AppColors.osDivider,
245246
},
246247
moreButton: {
247-
paddingVertical: 8,
248+
paddingVertical: 4,
248249
alignItems: 'center',
249250
},
250251
moreText: {
251-
fontSize: 13,
252+
fontSize: 14,
252253
color: AppColors.osPrimary,
253254
fontWeight: '500',
254255
},

examples/demo/src/components/ToggleRow.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ const styles = StyleSheet.create({
4949
marginRight: 12,
5050
},
5151
label: {
52-
fontSize: 15,
52+
fontSize: 14,
5353
color: '#212121',
54-
fontWeight: '500',
5554
},
5655
description: {
5756
fontSize: 12,

examples/demo/src/components/sections/AliasesSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default function AliasesSection({
3535
</View>
3636
) : (
3737
<View style={styles.listCard}>
38-
<PairList items={filtered} />
38+
<PairList items={filtered} layout="stacked" />
3939
</View>
4040
)}
4141
<ActionButton

examples/demo/src/components/sections/AppSection.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,27 +89,25 @@ const styles = StyleSheet.create({
8989
color: AppColors.osGrey600,
9090
},
9191
idValue: {
92-
fontSize: 13,
92+
fontSize: 12,
9393
color: AppColors.osGrey700,
9494
flex: 1,
9595
textAlign: 'right',
9696
marginLeft: 8,
9797
fontFamily: 'monospace',
9898
},
9999
banner: {
100+
...AppTheme.card,
100101
backgroundColor: AppColors.osWarningBackground,
101-
borderRadius: 8,
102-
padding: 12,
103102
marginBottom: AppSpacing.gap,
104103
},
105104
bannerText: {
106-
fontSize: 13,
105+
fontSize: 12,
107106
color: AppColors.osGrey700,
108-
marginBottom: 4,
109107
},
110108
bannerLink: {
111-
fontSize: 13,
109+
fontSize: 12,
112110
color: AppColors.osPrimary,
113-
fontWeight: '500',
111+
fontWeight: '600',
114112
},
115113
});

examples/demo/src/components/sections/PushSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const styles = StyleSheet.create({
6565
minWidth: 60,
6666
},
6767
idValue: {
68-
fontSize: 13,
68+
fontSize: 12,
6969
color: AppColors.osGrey700,
7070
flex: 1,
7171
textAlign: 'right',

examples/demo/src/components/sections/SendIamSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const styles = StyleSheet.create({
6161
justifyContent: 'flex-start',
6262
},
6363
icon: {
64-
marginRight: 10,
64+
marginRight: 8,
6565
},
6666
label: {
6767
fontSize: 14,

examples/demo/src/screens/HomeScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ const styles = StyleSheet.create({
250250
color: AppColors.osGrey600,
251251
},
252252
statusValue: {
253-
fontSize: 14,
253+
fontSize: 12,
254254
color: AppColors.osGrey700,
255-
fontWeight: '500',
255+
fontFamily: 'monospace',
256256
},
257257
loggedInText: {
258258
color: AppColors.osSuccess,

0 commit comments

Comments
 (0)