Skip to content

Commit

Permalink
fix: 修订 鸿蒙下demo样式
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyatong committed Dec 10, 2024
1 parent f19d4a7 commit 39762e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/packages/popup/demo.taro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ const PopupDemo = () => {
return (
<>
<Header />
<ScrollView
className={`${!harmonyAndRn() ? `demo ${Taro.getEnv() === 'WEB' ? 'web' : ''}` : ''}`}
>
<ScrollView className={`demo ${Taro.getEnv() === 'WEB' ? 'web' : ''}`}>
<View className="h2">{translated.ce5c5446}</View>
<Demo1 />

Expand Down
2 changes: 1 addition & 1 deletion src/packages/popup/demos/taro/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Demo2 = () => {
setShowText(false)
}}
>
<ScrollView style={{ height: '100px' }} scrollY>
<ScrollView style={{ height: 200 }} scrollY>
{Array.from({ length: 10 })
.fill('')
.map((_, i) => (
Expand Down
2 changes: 2 additions & 0 deletions src/packages/popup/popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

&-left {
position: absolute;
top: $popup-title-padding;
left: $popup-title-padding;
}

Expand Down Expand Up @@ -74,6 +75,7 @@
top: 50%;
left: 50%;
min-height: 10%;
max-width: 295px;
transform: translate(-50%, -50%);

&.nut-popup-round {
Expand Down

0 comments on commit 39762e1

Please sign in to comment.