Refactor:11; Fix:6; Chore:1; Feat:7; Build:1 #49

Merged
FatttSnake merged 26 commits from FatttSnake into dev 2024-05-06 09:38:28 +08:00
3 changed files with 46 additions and 2 deletions
Showing only changes of commit 6e4e5ed9aa - Show all commits

View File

@@ -13,6 +13,7 @@
} }
>*:first-child { >*:first-child {
width: 0;
height: fit-content; height: fit-content;
} }

View File

@@ -0,0 +1,43 @@
@use '@/assets/css/constants' as constants;
[data-component=system-tools-template] {
.root-content {
padding: 20px;
gap: 10px;
height: 100%;
width: 100%;
.has-edited::after {
content: '*';
color: constants.$font-secondary-color;
}
>*:first-child {
width: 0;
height: fit-content;
}
> *:nth-child(2) {
position: sticky;
top: 20px;
height: calc(100vh - 40px);
}
.close-editor-btn {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 10px;
right: 10px;
background-color: constants.$font-secondary-color;
width: 32px;
height: 32px;
border-radius: 50%;
color: white;
opacity: 0.6;
box-shadow: 2px 2px 10px 0 rgba(0,0,0,0.2);
cursor: pointer;
}
}
}

View File

@@ -1,5 +1,5 @@
import Icon from '@ant-design/icons' import Icon from '@ant-design/icons'
import '@/assets/css/pages/system/tools/base.scss' import '@/assets/css/pages/system/tools/template.scss'
import { import {
COLOR_PRODUCTION, COLOR_PRODUCTION,
DATABASE_DELETE_SUCCESS, DATABASE_DELETE_SUCCESS,
@@ -1021,7 +1021,7 @@ const Template = () => {
return ( return (
<> <>
<FitFullscreen data-component={'system-tools-base'}> <FitFullscreen data-component={'system-tools-template'}>
<HideScrollbar> <HideScrollbar>
<FlexBox direction={'horizontal'} className={'root-content'}> <FlexBox direction={'horizontal'} className={'root-content'}>
<Card> <Card>