Skip to content

Commit

Permalink
actually make mobile view work better
Browse files Browse the repository at this point in the history
  • Loading branch information
davish committed Feb 28, 2022
1 parent a009ea7 commit 888226d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.fc {
height: 100%;
}
4 changes: 1 addition & 3 deletions src/view.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./overrides.css";
import { ItemView, Notice, request, TFile, WorkspaceLeaf } from "obsidian";
import { Calendar, EventSourceInput } from "@fullcalendar/core";

Expand Down Expand Up @@ -246,8 +247,6 @@ export class CalendarView extends ItemView {
},
});

calendarEl.style.height = "100%";

this.registerEvent(
this.app.metadataCache.on("changed", this.cacheCallback)
);
Expand Down Expand Up @@ -280,7 +279,6 @@ export class CalendarView extends ItemView {
onResize(): void {
if (this.calendar) {
this.calendar.render();
this.calendar.el.style.height = "100%";
}
}

Expand Down

0 comments on commit 888226d

Please sign in to comment.