mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
修改手机端网页样式
This commit is contained in:
parent
1d2df860e8
commit
59c26d90d3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -314,7 +314,7 @@ const Crontab = () => {
|
|||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 100,
|
||||
width: 130,
|
||||
render: (text, record, index) => {
|
||||
const isPc = !isPhone;
|
||||
return (
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user