Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/nutui-taro-demo/src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,17 @@ body {
padding: 0px 17px 10px 17px;

&.full {
padding: 57px 0 0 0;
padding: 0 0 0 0;

.h2 {
padding-left: 17px;
}
}

&.drag-full {
padding: 57px 0 0 0;
}

&-full {
padding: 0 0 0 0;

Expand Down
2 changes: 1 addition & 1 deletion src/packages/drag/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const DragDemo = () => {
return (
<>
<Header />
<ScrollView className={`demo ${isTaroWeb ? 'web' : 'full'}`}>
<ScrollView className={`demo ${isTaroWeb ? 'web' : 'drag-full'}`}>
<View className="h2">{translated.basic}</View>
<Demo1 />
<View className="h2" style={{ paddingTop: '30px' }}>
Expand Down
4 changes: 3 additions & 1 deletion src/packages/menu/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const MenuDemo = () => {
return (
<>
<Header />
<ScrollView className={`demo ${Taro.getEnv() === 'WEB' ? 'web' : ''}`}>
<ScrollView
className={`demo full ${Taro.getEnv() === 'WEB' ? 'web' : ''}`}
>
<View className="h2">{translated.basic}</View>
<Demo1 />
<View className="h2">{translated.controlled}</View>
Expand Down
2 changes: 1 addition & 1 deletion src/packages/tabs/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const TabsDemo = () => {
<>
<Header />
<ScrollView
className={`demo ${Taro.getEnv() === 'WEB' ? 'web full' : ''}`}
className={`demo full ${Taro.getEnv() === 'WEB' ? 'web' : ''}`}
>
<View className="h2">{translated.basic}</View>
<Demo1 />
Expand Down
Loading