Преглед на файлове

🎨 style(dashboard): Optimize the layout of the Uptime card legend on the dashboard to resolve the issue where the last monitoring item is obscured

Apple\Apple преди 11 месеца
родител
ревизия
dede9e117a
променени са 1 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 3 4
      web/src/pages/Detail/index.js

+ 3 - 4
web/src/pages/Detail/index.js

@@ -1279,9 +1279,8 @@ const Detail = (props) => {
                 }
                 footer={uptimeData.length > 0 ? (
                   <Card
-                    shadows="always"
                     bordered={false}
-                    className="!rounded-full backdrop-blur"
+                    className="!rounded-2xl backdrop-blur !shadow-none"
                   >
                     <div className="flex flex-wrap gap-3 text-xs justify-center">
                       {uptimeLegendData.map((legend, index) => (
@@ -1296,13 +1295,13 @@ const Detail = (props) => {
                     </div>
                   </Card>
                 ) : null}
-                footerStyle={uptimeData.length > 0 ? { marginTop: '-100px' } : undefined}
+                footerStyle={uptimeData.length > 0 ? { padding: '0px' } : undefined}
               >
                 <div className="card-content-container">
                   <Spin spinning={uptimeLoading}>
                     <div
                       ref={uptimeScrollRef}
-                      className="p-2 max-h-96 overflow-y-auto card-content-scroll"
+                      className="p-2 max-h-80 overflow-y-auto card-content-scroll"
                       onScroll={() => handleCardScroll(uptimeScrollRef, setShowUptimeScrollHint)}
                     >
                       {uptimeData.length > 0 ? (