文章详情样式再次调整

v2
一杯沧海 1 year ago committed by xing
parent 5380bc35a0
commit 2efdeb0bd2
  1. 4
      src/pages/preview/brand/article/article.module.scss
  2. 2
      src/pages/preview/brand/article/article.tsx
  3. 3
      src/pages/preview/illness/article/article.module.scss
  4. 2
      src/pages/preview/illness/article/article.tsx

@ -1,5 +1,7 @@
.fixedBox{
position: absolute;
position: fixed;
z-index: 1000;
top:0;
width: 100vw;
height: 100vh;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));

@ -27,7 +27,7 @@ const article:FC = () => {
const html = articleInfo?.content;
return (
<>
<View style={{padding:'10px'}} dangerouslySetInnerHTML={{ __html: html! }}></View>
<View style={{padding:'10px',height:!token ? Taro.getWindowInfo().windowHeight-60+'px' : 'auto',overflow:!token ? 'hidden':'auto'}} dangerouslySetInnerHTML={{ __html: html! }}></View>
{
!token &&
<View className={styles.fixedBox}>

@ -1,5 +1,6 @@
.fixedBox{
position: absolute;
position: fixed;
top:0;
width: 100vw;
height: 100vh;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));

@ -28,7 +28,7 @@ const article:FC = () => {
const html = articleInfo?.content;
return (
<>
<View style={{padding:'10px'}} dangerouslySetInnerHTML={{ __html: html! }}></View>
<View style={{padding:'10px',height:!token ? Taro.getWindowInfo().windowHeight-60+'px' : 'auto',overflow:!token ? 'hidden':'auto'}} dangerouslySetInnerHTML={{ __html: html! }}></View>
{
!token &&
<View className={styles.fixedBox}>

Loading…
Cancel
Save