Skip to content

Commit f30d8e5

Browse files
committed
feat(ui): enhance TasksBottomSheet styles for web compatibility by adding platform-specific shadow styles
1 parent b5a7ccf commit f30d8e5

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

components/ui/simple-task-list/TasksBottomSheet.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StyleSheet, View } from 'react-native';
1+
import { StyleSheet, View, Platform } from 'react-native';
22
import Animated, {
33
useAnimatedStyle,
44
withTiming,
@@ -83,14 +83,19 @@ const styles = StyleSheet.create({
8383
backgroundColor: '#FFFFFF',
8484
borderTopLeftRadius: 20,
8585
borderTopRightRadius: 20,
86-
shadowColor: '#000',
87-
shadowOffset: {
88-
width: 0,
89-
height: -2,
90-
},
91-
shadowOpacity: 0.1,
92-
shadowRadius: 8,
93-
elevation: 8,
86+
...Platform.select({
87+
web: { boxShadow: '0px -2px 8px 0px rgba(0, 0, 0, 0.1)' },
88+
default: {
89+
shadowColor: '#000',
90+
shadowOffset: {
91+
width: 0,
92+
height: -2,
93+
},
94+
shadowOpacity: 0.1,
95+
shadowRadius: 8,
96+
elevation: 8,
97+
},
98+
}),
9499
overflow: 'hidden',
95100
},
96101
content: {

0 commit comments

Comments
 (0)