DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
refactor(panel-scheduler): render through PanelPage and align the header
hairyf0a0c8f874c9f
diff --git a/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.cssr.ts b/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.cssr.tsindex ddde9364..f53da945 100644--- a/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.cssr.ts+++ b/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.cssr.ts@@ -1,17 +1,17 @@-import { cssr, panelContainer, styles as sharedStyles } from 'dsh-tauri-ui/client'+import { cssr, styles as sharedStyles } from 'dsh-tauri-ui/client'const { c } = cssrconst { primary, secondary, tertiary, borderL2: border, font } = sharedStyles/** 定时任务面板主容器(scheduler-panel.tsx):外壳 + 搜索 + Tabs。 */export default c([- c('.dshp-scheduler__shell', { ...panelContainer, paddingBlock: '24px 32px', color: primary, fontFamily: font, fontSize: '13px', lineHeight: '1.5' }),- c('.dshp-scheduler__top', { display: 'flex', flexDirection: 'column', gap: '14px', marginBottom: '12px' }),- c('.dshp-scheduler__heading h1', { margin: '0', fontSize: '20px', lineHeight: '28px', fontWeight: '650', letterSpacing: '-.2px' }),- c('.dshp-scheduler__heading p', { margin: '4px 0 0', color: tertiary, fontSize: '13px', lineHeight: '1.5' }),- c('.dshp-scheduler__toolbar', { display: 'flex', flexWrap: 'nowrap', alignItems: 'center', gap: '8px' }),- c('.dshp-scheduler__toolbar-spacer', { flex: '1' }),- c('.dshp-scheduler__search-wrap', { position: 'relative', display: 'inline-flex', flex: '1', minWidth: '0', maxWidth: '280px' }),+ c('.dshp-scheduler__shell', { boxSizing: 'border-box', color: primary, fontFamily: font, fontSize: '13px', lineHeight: '1.5' }),+ c('.dshp-scheduler__top', { display: 'flex', justifyContent: 'space-between', alignItems: 'flex-start', gap: '16px', marginBottom: '12px' }),+ c('.dshp-scheduler__heading', { minWidth: '0' }),+ c('.dshp-scheduler__heading h1', { margin: '0', fontSize: '20px', lineHeight: '28px', fontWeight: '500' }),+ c('.dshp-scheduler__heading p', { margin: '4px 0 0', color: secondary, fontSize: '13px', lineHeight: '20px' }),+ c('.dshp-scheduler__toolbar', { display: 'flex', justifyContent: 'flex-end', alignItems: 'center', gap: '16px' }),+ c('.dshp-scheduler__search-wrap', { position: 'relative', display: 'inline-flex', flex: '0 1 280px', minWidth: '0', maxWidth: '280px' }),c('.dshp-scheduler__search-wrap .dshp-scheduler__input', { width: '100%', paddingLeft: '32px' }),c('.dshp-scheduler__search-icon', { position: 'absolute', left: '10px', top: '50%', transform: 'translateY(-50%)', pointerEvents: 'none', color: tertiary }),c('.dshp-scheduler__tabs', { display: 'flex', alignItems: 'center', gap: '16px', margin: '4px 0 14px', borderBottom: `1px solid ${border}` }),diff --git a/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.tsx b/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.tsxindex 3b61f64b..45186cbd 100644--- a/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.tsx+++ b/packages/dsh-tauri-panel-scheduler/src/client/components/scheduler-panel.tsx@@ -93,7 +93,6 @@ export function SchedulerPanel({ t, onViaChat }: SchedulerPanelProps): ReactElemonChange={event => setSearch(event.target.value)}/></div>- <div className="dshp-scheduler__toolbar-spacer" /><button className="dshp-scheduler__btn" type="button" onClick={onViaChat}><Icon as={CommentPlus} />{t('viaChat')}diff --git a/packages/dsh-tauri-panel-scheduler/src/client/register/panel.tsx b/packages/dsh-tauri-panel-scheduler/src/client/register/panel.tsxindex 6633ce17..b85d1402 100644--- a/packages/dsh-tauri-panel-scheduler/src/client/register/panel.tsx+++ b/packages/dsh-tauri-panel-scheduler/src/client/register/panel.tsx@@ -1,6 +1,6 @@import type { ClientContext, PanelHandle } from 'dsh-tauri/client'import type { Translate } from '../locales/index.types'-import { Calendar, Icon, PanelWidthSync } from 'dsh-tauri-ui/client'+import { Calendar, Icon, PanelPage } from 'dsh-tauri-ui/client'import { definePanel, defineRegister } from 'dsh-tauri/client'import { SchedulerPanel } from '../components/scheduler-panel'import { PANEL_ACTION_ORDER, PANEL_ID } from '../constants'@@ -18,7 +18,7 @@ export const panelFeature = defineRegister<ClientContext>((controller, ctx) => {label: () => locale.text('scheduler'),icon: props => <Icon as={Calendar} size={props.size} />,render: () => (- <PanelWidthSync>+ <PanelPage><SchedulerPanelt={t}onViaChat={() => {@@ -26,7 +26,7 @@ export const panelFeature = defineRegister<ClientContext>((controller, ctx) => {holder.current?.close()}}/>- </PanelWidthSync>+ </PanelPage>),})controller.add(holder.current.dispose)