Explorar el Código

feat: 通知中心高度调整

lanjianrong hace 4 años
padre
commit
378844d9b8
Se han modificado 1 ficheros con 10 adiciones y 5 borrados
  1. 10 5
      src/pages/Hr/Notification/index.jsx

+ 10 - 5
src/pages/Hr/Notification/index.jsx

@@ -90,14 +90,16 @@ const Notification = () => {
       <div
         id="scrollableDiv"
         className="pr-4"
-        style={{ height: 'calc(100vh - 125px - 3.5rem)', overflowY: 'auto' }}>
+        style={{ height: 'calc(100vh - 180px)', overflowY: 'auto' }}
+      >
         <InfiniteScroll
           dataLength={state.total}
           next={loadMoreData}
           hasMore={state.hasMore}
           loader={<Skeleton avatar paragraph={{ rows: 1 }} active />}
           endMessage={<Divider plain>别再滚啦,已是尽头</Divider>}
-          scrollableTarget="scrollableDiv">
+          scrollableTarget="scrollableDiv"
+        >
           <List
             itemLayout="vertical"
             // pagination={{ pageSize: 5 }}
@@ -109,13 +111,15 @@ const Notification = () => {
                   <span width={200} className="mt-1 text-hex-aaa">
                     {item.createTime}
                   </span>
-                }>
+                }
+              >
                 <List.Item.Meta
                   avatar={<Avatar src={item.avatar} />}
                   title={
                     <span
                       className="cursor-pointer text-primary"
-                      onClick={() => showMessageDrawer(item)}>
+                      onClick={() => showMessageDrawer(item)}
+                    >
                       {item.title}
                     </span>
                   }
@@ -137,7 +141,8 @@ const Notification = () => {
                           rows: 4
                         }
                       : false
-                  }>
+                  }
+                >
                   <MarkDown>{item.content}</MarkDown>
                 </Paragraph>
                 {/* <div className="mt-1 text-hex-aaa">{item.createTime}</div> */}