mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 08:38:41 +08:00
optimize sync config panel
This commit is contained in:
parent
1190dafbd5
commit
c0d7cf5972
@ -72,8 +72,8 @@ export class DoubanSyncModal extends Modal {
|
||||
this.showProgress(sliderDiv,syncButton);
|
||||
}, 1000);
|
||||
|
||||
syncButton.setClass("obsidian_douban_search_button");
|
||||
cancelButton.setClass("obsidian_douban_search_button");
|
||||
syncButton.setClass("obsidian_douban_status_button");
|
||||
cancelButton.setClass("obsidian_douban_status_button");
|
||||
|
||||
}
|
||||
|
||||
@ -111,7 +111,11 @@ export class DoubanSyncModal extends Modal {
|
||||
};
|
||||
this.showConfigPan(contentEl.createDiv('config'), syncConfig, false);
|
||||
const controls = contentEl.createDiv("controls");
|
||||
|
||||
const cancelButton = new ButtonComponent(controls)
|
||||
.setButtonText(i18nHelper.getMessage('110005'))
|
||||
.onClick(() => {
|
||||
this.close();
|
||||
});
|
||||
const syncButton = new ButtonComponent(controls)
|
||||
.setButtonText(i18nHelper.getMessage('110007'))
|
||||
.onClick(async () => {
|
||||
@ -127,13 +131,10 @@ export class DoubanSyncModal extends Modal {
|
||||
await this.plugin.sync(this.context);
|
||||
})
|
||||
|
||||
const cancelButton = new ButtonComponent(controls)
|
||||
.setButtonText(i18nHelper.getMessage('110005'))
|
||||
.onClick(() => {
|
||||
this.close();
|
||||
});
|
||||
cancelButton.setClass("obsidian_douban_search_button");
|
||||
|
||||
syncButton.setClass("obsidian_douban_search_button");
|
||||
cancelButton.setClass("obsidian_douban_search_button");
|
||||
|
||||
}
|
||||
|
||||
private updateContextByConfig(syncConfig: SyncConfig) {
|
||||
|
||||
13
styles.css
13
styles.css
@ -33,9 +33,14 @@
|
||||
}
|
||||
|
||||
.obsidian_douban_search_button {
|
||||
margin-top: 10px;
|
||||
margin-top: 30px;
|
||||
margin-right: 10px;
|
||||
horiz-align: right;
|
||||
float:right;
|
||||
}
|
||||
|
||||
.obsidian_douban_status_button {
|
||||
margin-top: 5px;
|
||||
margin-right: 10px;
|
||||
float:right;
|
||||
}
|
||||
|
||||
@ -72,10 +77,6 @@
|
||||
margin-bottom: 1px;
|
||||
width: 90%;
|
||||
}
|
||||
.obsidian_douban_sync_slider.with_number {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user