修改手机端网页样式

This commit is contained in:
whyour 2023-04-06 21:49:42 +08:00
parent 1d2df860e8
commit 59c26d90d3
5 changed files with 14 additions and 9 deletions

View File

@ -26,8 +26,8 @@ body {
}
.ant-modal-body {
max-height: calc(80vh - 110px);
max-height: calc(80vh - var(--vh-offset, 110px));
max-height: calc(90vh - 110px);
max-height: calc(90vh - var(--vh-offset, 110px));
overflow-y: auto;
}

View File

@ -271,7 +271,7 @@ export default function () {
// @ts-ignore
title={
<>
<span style={{ fontSize: 16 }}></span>
<span style={{ fontSize: 16, marginRight: 5 }}></span>
<a
href={systemInfo?.changeLogLink}
target="_blank"

View File

@ -6,8 +6,9 @@
.card-wrapper {
.ant-card:last-child {
.ant-card-body {
height: calc(80vh - 367px);
height: calc(80vh - var(--vh-offset, 0px) - 367px);
min-height: 300px;
height: calc(90vh - 367px);
height: calc(90vh - var(--vh-offset, 0px) - 367px);
overflow-y: auto;
}
}
@ -193,8 +194,10 @@ tr.drop-over-upward td {
}
}
.crontab-wrapper {
tbody .ant-table-cell {
height: 69px !important;
body[data-mode='desktop'] {
.crontab-wrapper {
tbody .ant-table-cell {
height: 69px !important;
}
}
}

View File

@ -314,7 +314,7 @@ const Crontab = () => {
{
title: '操作',
key: 'action',
width: 100,
width: 130,
render: (text, record, index) => {
const isPc = !isPhone;
return (

View File

@ -14,11 +14,13 @@ export const useCtx = () => {
setMarginLeft(0);
setMarginTop(0);
setIsPhone(true);
document.body.setAttribute('data-mode', 'phone');
} else {
setWidth('100%');
setMarginLeft(0);
setMarginTop(-72);
setIsPhone(false);
document.body.setAttribute('data-mode', 'desktop');
}
}, []);