Skip to content

Commit

Permalink
修改手机端日志样式,忽略cron搜索大小写
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhh committed May 25, 2021
1 parent 4e40bf0 commit 25cf181
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion back/services/cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class CronService {
public async crontabs(searchText?: string): Promise<Crontab[]> {
let query = {};
if (searchText) {
const reg = new RegExp(searchText);
const reg = new RegExp(searchText, 'i');
query = {
$or: [
{
Expand Down
16 changes: 16 additions & 0 deletions src/layouts/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ body {
overflow-y: hidden;
overflow-x: auto;
}

.CodeMirror-sizer {
width: 500px;
transform: scale(0.95);
transform-origin: top left;
min-height: auto;
}
}

.ql-container-wrapper {
Expand Down Expand Up @@ -78,4 +85,13 @@ body {
height: calc(100vh - var(--vh-offset, 0px) - 176px);
}
}

.log-modal-code {
.CodeMirror-sizer {
width: 500px;
transform: scale(0.95);
transform-origin: top left;
min-height: auto;
}
}
}

0 comments on commit 25cf181

Please sign in to comment.