@farcaster/snap 2.6.3 → 2.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -82,7 +82,7 @@ export function SnapCardV1({ snap, handlers, loading = false, appearance = "dark
|
|
|
82
82
|
const cardStyles = StyleSheet.create({
|
|
83
83
|
frameRing: { alignSelf: "stretch" },
|
|
84
84
|
card: { overflow: "hidden", borderWidth: 1, minHeight: 120 },
|
|
85
|
-
body: { paddingHorizontal:
|
|
85
|
+
body: { paddingHorizontal: 8, paddingVertical: 8 },
|
|
86
86
|
expandFloat: {
|
|
87
87
|
position: "absolute",
|
|
88
88
|
left: 0,
|
|
@@ -123,7 +123,7 @@ function SnapCardV2Inner({ snap, handlers, loading, borderRadius, showOverflowWa
|
|
|
123
123
|
: current === nextHeight
|
|
124
124
|
? current
|
|
125
125
|
: nextHeight);
|
|
126
|
-
}, style:
|
|
126
|
+
}, style: cardStyles.body, children: content }), expansion.showOverflowWarning && contentHeight > SNAP_MAX_HEIGHT && (_jsxs(View, { style: { position: "absolute", top: SNAP_MAX_HEIGHT, left: 0, right: 0, height: overflowAmount, zIndex: 10, pointerEvents: "none" }, children: [_jsx(View, { style: { height: 1, borderTopWidth: 1, borderStyle: "dashed", borderColor: "rgba(255,100,100,0.6)" } }), _jsx(View, { style: { position: "absolute", top: -10, right: 4, backgroundColor: "rgba(0,0,0,0.7)", paddingHorizontal: 4, paddingVertical: 1, borderRadius: 3 }, children: _jsxs(Text, { style: { fontSize: 10, color: "rgba(255,100,100,0.7)", fontFamily: Platform.select({ ios: "Menlo", default: "monospace" }) }, children: [SNAP_MAX_HEIGHT, "px"] }) }), _jsx(View, { style: { flex: 1, backgroundColor: "rgba(255,50,50,0.15)" } })] })), loading
|
|
127
127
|
? loadingOverlay === undefined
|
|
128
128
|
? _jsx(SnapLoadingOverlay, { appearance: mode, accentHex: accentHex })
|
|
129
129
|
: loadingOverlay
|
|
@@ -157,7 +157,7 @@ export function SnapCardV2({ snap, handlers, loading = false, appearance = "dark
|
|
|
157
157
|
const cardStyles = StyleSheet.create({
|
|
158
158
|
frameRing: { alignSelf: "stretch" },
|
|
159
159
|
card: { borderWidth: 1, minHeight: 120, overflow: "hidden" },
|
|
160
|
-
body: { paddingHorizontal:
|
|
160
|
+
body: { paddingHorizontal: 8, paddingVertical: 8 },
|
|
161
161
|
actionError: { paddingHorizontal: 12, paddingVertical: 8, fontSize: 13 },
|
|
162
162
|
expandFloat: {
|
|
163
163
|
position: "absolute",
|
package/package.json
CHANGED
|
@@ -263,7 +263,7 @@ export function SnapCardV1({
|
|
|
263
263
|
const cardStyles = StyleSheet.create({
|
|
264
264
|
frameRing: { alignSelf: "stretch" },
|
|
265
265
|
card: { overflow: "hidden", borderWidth: 1, minHeight: 120 },
|
|
266
|
-
body: { paddingHorizontal:
|
|
266
|
+
body: { paddingHorizontal: 8, paddingVertical: 8 },
|
|
267
267
|
expandFloat: {
|
|
268
268
|
position: "absolute",
|
|
269
269
|
left: 0,
|
|
@@ -289,7 +289,7 @@ function SnapCardV2Inner({
|
|
|
289
289
|
: nextHeight,
|
|
290
290
|
);
|
|
291
291
|
}}
|
|
292
|
-
style={
|
|
292
|
+
style={cardStyles.body}
|
|
293
293
|
>
|
|
294
294
|
{content}
|
|
295
295
|
</View>
|
|
@@ -421,7 +421,7 @@ export function SnapCardV2({
|
|
|
421
421
|
const cardStyles = StyleSheet.create({
|
|
422
422
|
frameRing: { alignSelf: "stretch" },
|
|
423
423
|
card: { borderWidth: 1, minHeight: 120, overflow: "hidden" },
|
|
424
|
-
body: { paddingHorizontal:
|
|
424
|
+
body: { paddingHorizontal: 8, paddingVertical: 8 },
|
|
425
425
|
actionError: { paddingHorizontal: 12, paddingVertical: 8, fontSize: 13 },
|
|
426
426
|
expandFloat: {
|
|
427
427
|
position: "absolute",
|