Fixed empty space at the bottom, fixed warning at main.ts

This commit is contained in:
Zain 2021-11-21 12:47:21 +05:30
parent d10a2ca747
commit 54e6000eb8
No known key found for this signature in database
GPG key ID: 84AD8F072D45C37F
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ export default class HabiticaSync extends Plugin {
this.activateView();
}
});
this.activateView();
// this.activateView();
}
async loadSettings() {
@ -44,7 +44,7 @@ export default class HabiticaSync extends Plugin {
}
async onunload() {
// await this.view.onClose();
await this.view.onClose();
this.app.workspace
.getLeavesOfType(VIEW_TYPE)

View file

@ -196,7 +196,6 @@ class App extends React.Component<any, any> {
{content}
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<Taskview data={this.state.tasks} handleChangeTodos={this.handleChangeTodos} handleChangeDailys={this.handleChangeDailys} handleChangeHabits={this.handleChangeHabits} handleChangeRewards={this.handleChangeRewards}/>
<div></div>
<Statsview user_data={this.state.user_data} />
</div>
);

View file

@ -90,6 +90,7 @@ input[type=checkbox]:focus {
.plugin-root {
min-width: 260px;
display: grid;
grid-template-rows: auto 1fr auto;
height: inherit;
}