fixed: 更新样式

This commit is contained in:
LittleBoy 2024-12-24 21:00:20 +08:00
parent 869efaf59b
commit 8b219769fc
3 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
import {Input, Modal, Space} from "antd";
import {Modal} from "antd";
import ArticleGroup from "@/components/article/group.tsx";
import {useEffect, useState} from "react";
import {useSetState} from "ahooks";
@ -157,7 +157,7 @@ export default function ArticleEditModal(props: Props) {
{state.error && <div className="text-red-500">{state.error}</div>}
</div>
<div className="modal-control-footer flex justify-end">
<div className="text-lg flex gap-10 ">
<div className="flex gap-10 ">
{props.type == 'news' && props.id ? <button className="text-gray-400 hover:text-gray-800" onClick={handlePush2Video}>{state.generating?'推送中...':'生成视频'}</button> : null}
<button className="text-gray-400 hover:text-gray-800" onClick={() => props.onClose?.()}></button>
<button onClick={handleSave} className="text-gray-800 hover:text-blue-500">{props.type == 'news' ? '确定' : '重新生成'}</button>

View File

@ -232,8 +232,8 @@ export default function LiveIndex() {
<div className="live-control flex justify-between mb-1">
<div>
<Space>
<span className={"text-blue-500"}>{state.activeIndex == -1 ? '暂未播放' : `播放到 ${state.activeIndex + 1}`}</span>
<span>{videoData.length} </span>
{/*<span className={"text-blue-500"}>视频正在播放{state.activeIndex == -1 ? '' : `到 ${state.activeIndex + 1} 条`}</span>*/}
<span>{videoData.length} </span>
</Space>
</div>

View File

@ -10,7 +10,7 @@ import ButtonPush2Video from "@/pages/news/components/button-push2video.tsx";
import styles from './components/style.module.scss'
import InfiniteScroller, {InfiniteScrollerRef} from "@/components/scoller/infinite-scroller.tsx";
import {IconDelete, IconWarningCircle} from "@/components/icons";
import {IconDelete, IconEdit, IconWarningCircle} from "@/components/icons";
import {clsx} from "clsx";
import ButtonToTop from "@/components/scoller/button-to-top.tsx";
import ButtonDeleteBatch from "@/pages/news/components/button-delete-batch.tsx";
@ -135,7 +135,7 @@ export default function NewEdit() {
className="text-sm">{formatTime(item.publish_time, 'YYYY-MM-DD HH:mm')}</div>
</div>
<div className="col operations">
{/*<span className="icon-btn"><IconEdit/></span>*/}
<span className="icon-btn" onClick={()=>setEditId(item.id)}><IconEdit/></span>
<Popconfirm
rootClassName={'popconfirm-main'}
placement={'left'}
@ -165,7 +165,8 @@ export default function NewEdit() {
</div>
</div>
<ArticleEditModal
type="news" id={editId}
type="news"
id={editId}
onClose={(saved) => {
setEditId(-1)
if (saved) refresh()