tangled
alpha
login
or
join now
jeanmachine.dev
/
witchsky.app
forked from
jollywhoppers.com/witchsky.app
0
fork
atom
Bluesky app fork with some witchin' additions 💫
0
fork
atom
overview
issues
pulls
pipelines
slight sizing adjustements
jeanmachine.dev
3 weeks ago
4a605b22
702660b4
+9
-15
2 changed files
expand all
collapse all
unified
split
src
components
PdsBadge.tsx
PdsDialog.tsx
+6
-9
src/components/PdsBadge.tsx
···
2
2
import {msg} from '@lingui/macro'
3
3
import {useLingui} from '@lingui/react'
4
4
5
5
-
import {usePdsLabelEnabled, usePdsLabelHideBskyPds} from '#/state/preferences/pds-label'
5
5
+
import {
6
6
+
usePdsLabelEnabled,
7
7
+
usePdsLabelHideBskyPds,
8
8
+
} from '#/state/preferences/pds-label'
6
9
import {usePdsLabelQuery} from '#/state/queries/pds-label'
7
10
import {atoms as a, useBreakpoints} from '#/alf'
8
8
-
import {IS_WEB} from '#/env'
9
11
import {Button} from '#/components/Button'
10
12
import * as Dialog from '#/components/Dialog'
11
13
import {FaviconOrGlobe, PdsDialog} from '#/components/PdsDialog'
14
14
+
import {IS_WEB} from '#/env'
12
15
13
13
-
export function PdsBadge({
14
14
-
did,
15
15
-
size,
16
16
-
}: {
17
17
-
did: string
18
18
-
size: 'lg' | 'md' | 'sm'
19
19
-
}) {
16
16
+
export function PdsBadge({did, size}: {did: string; size: 'lg' | 'md' | 'sm'}) {
20
17
const enabled = usePdsLabelEnabled()
21
18
const hideBskyPds = usePdsLabelHideBskyPds()
22
19
const {data, isLoading} = usePdsLabelQuery(enabled ? did : undefined)
+3
-6
src/components/PdsDialog.tsx
···
188
188
backgroundColor: '#0085ff',
189
189
},
190
190
]}>
191
191
-
<BskyMark width={size * 0.65} style={{color: '#fff'}} />
191
191
+
<BskyMark width={size * 0.8} style={{color: '#fff'}} />
192
192
</View>
193
193
)
194
194
}
···
207
207
backgroundColor: '#6364FF',
208
208
},
209
209
]}>
210
210
-
<FediverseIcon
211
211
-
width={Math.round(size * 0.7)}
212
212
-
style={{color: '#fff'}}
213
213
-
/>
210
210
+
<FediverseIcon width={Math.round(size * 0.8)} style={{color: '#fff'}} />
214
211
</View>
215
212
)
216
213
}
···
253
250
]}>
254
251
<FontAwesomeIcon
255
252
icon="database"
256
256
-
size={Math.round(size * 0.6)}
253
253
+
size={Math.round(size * 0.7)}
257
254
style={
258
255
{color: t.atoms.text_contrast_medium.color} as FontAwesomeIconStyle
259
256
}