样式优化

This commit is contained in:
yj 2024-08-23 15:01:50 +08:00
parent 725287d25d
commit 982c4e249b
3 changed files with 12 additions and 11 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "multi.person.meeting", "name": "multi.person.meeting",
"private": true, "private": true,
"version": "0.0.1", "version": "0.0.0",
"main": "main.js", "main": "main.js",
"authors": "yj", "authors": "yj",
"description": "test", "description": "test",
@ -99,4 +99,4 @@
"shortcutName": "智汇享" "shortcutName": "智汇享"
} }
} }
} }

View File

@ -1,24 +1,26 @@
.isUpdateModal { .isUpdateModal {
height: 400px; height: 500px;
background-color: rgb(21, 25, 29); background-color: rgb(21, 25, 29);
background-size: 100% auto; background-size: 100% auto;
background-repeat: no-repeat; background-repeat: no-repeat;
color: #ffffff; color: #ffffff;
padding: 230px 30px 0; padding: 140px 30px 0;
box-sizing: border-box; box-sizing: border-box;
.remarks { .remarks {
width: 100%; width: 100%;
color: #C8C8C8; color: #C8C8C8;
height: 70%;
overflow-y: auto;
} }
.buttons { .buttons {
width: 100%; width: 100%;
margin-top: 32px; margin-top: 10px;
text-align: center; text-align: center;
.button2 { .button2 {
margin-top: 20px; margin-top: 10px;
color: #555454; color: #555454;
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 14px;

View File

@ -22,7 +22,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
const [updateContent, setUpdateContent] = useState('') // 版本更新内容 const [updateContent, setUpdateContent] = useState('') // 版本更新内容
function getContent() { function getContent() {
fetch('https://update.23544.com/metting/update.txt') // 配置服务器地址 fetch(`https://update.23544.com/metting/update.txt?t=${+new Date()}`) // 配置服务器地址
.then(async response => { .then(async response => {
if (response.status === 200) { if (response.status === 200) {
return setUpdateContent(await response.text()) return setUpdateContent(await response.text())
@ -50,13 +50,12 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
footer={null} footer={null}
onCancel={() => closeModal()} onCancel={() => closeModal()}
centered centered
width={'338px'} width={'400px'}
className='modal-padding' className='modal-padding'
maskClosable={false} maskClosable={false}
> >
<div className={styles.isUpdateModal} style={{ backgroundImage: `url(${ImageUrl.icon7})` }}> <div className={styles.isUpdateModal} style={{ backgroundImage: `url(${ImageUrl.icon7})` }}>
<div className={styles.remarks}> <div className={styles.remarks} dangerouslySetInnerHTML={{ __html: updateContent }}>
{updateContent}
</div> </div>
{ {
!progress ? !progress ?
@ -76,7 +75,7 @@ const UpdateModal = forwardRef((props: any, ref: any) => {
</div> : </div> :
<Button type="primary" <Button type="primary"
onClick={() => window.electron.onDownload('2')} onClick={() => window.electron.onDownload('2')}
style={{ width: '100%', height: '40px',marginTop:'20px' }} style={{ width: '100%', height: '40px', marginTop: '20px' }}
className={`m-ant-btn`} className={`m-ant-btn`}
></Button> ></Button>
} }