样式优化

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",
"private": true,
"version": "0.0.1",
"version": "0.0.0",
"main": "main.js",
"authors": "yj",
"description": "test",
@ -99,4 +99,4 @@
"shortcutName": "智汇享"
}
}
}
}

View File

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

View File

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