lesli_assets 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  module LesliAssets
2
- VERSION = "1.0.4"
3
- BUILD = "1754023334"
2
+ VERSION = "1.0.6"
3
+ BUILD = "1755007848"
4
4
  end
@@ -35,6 +35,12 @@ import { Calendar } from "@fullcalendar/core";
35
35
  import dayGridPlugin from "@fullcalendar/daygrid";
36
36
 
37
37
 
38
+ function getCalendarInitialView() {
39
+ if (window.innerWidth < 768) return "dayGridDay";
40
+ if (window.innerWidth < 1024) return "dayGridWeek";
41
+ return "dayGridMonth";
42
+ };
43
+
38
44
 
39
45
  // ·
40
46
  function buildCalendar() {
@@ -47,7 +53,7 @@ function buildCalendar() {
47
53
  plugins: [ dayGridPlugin ],
48
54
  firstDay: 1,
49
55
  headerToolbar: false,
50
- initialView: "dayGridMonth",
56
+ initialView: getCalendarInitialView(),
51
57
  showNonCurrentDates: true,
52
58
  dayMaxEvents: true,
53
59
  editable: true,
@@ -67,6 +73,13 @@ function buildCalendar() {
67
73
 
68
74
  console.log("renderCalendar")
69
75
  calendar.render();
76
+
77
+ window.addEventListener('resize', () => {
78
+ const newView = getCalendarInitialView();
79
+ if (calendar.view.type !== newView) {
80
+ calendar.changeView(newView);
81
+ }
82
+ });
70
83
  }
71
84
 
72
85
 
@@ -34,7 +34,7 @@ Building a better future, one line of code at a time.
34
34
  // · Font family for titles
35
35
  @font-face {
36
36
  font-family: "Domine";
37
- src: url("lesli_assets/Domine/Domine-Variable.ttf") format("truetype");
37
+ src: url("/lesli_assets/Domine/Domine-Variable.ttf") format("truetype");
38
38
  font-display: swap;
39
39
  }
40
40
 
@@ -42,6 +42,6 @@ Building a better future, one line of code at a time.
42
42
  // · Font family for the body
43
43
  @font-face {
44
44
  font-family: "OpenSans";
45
- src: url("lesli_assets/OpenSans/OpenSans-Variable.ttf") format("truetype");
45
+ src: url("/lesli_assets/OpenSans/OpenSans-Variable.ttf") format("truetype");
46
46
  font-display: swap;
47
47
  }
@@ -29,16 +29,20 @@ Building a better future, one line of code at a time.
29
29
  // ·
30
30
  */
31
31
 
32
+
33
+ // ·
32
34
  @font-face {
33
- font-family: 'Material Symbols Outlined';
35
+ font-family: "MaterialSymbols";
36
+ src: url("/lesli_assets/MaterialDesign/symbols.woff") format('woff');
34
37
  font-style: normal;
35
38
  font-weight: 400;
36
- src: url("lesli_assets/MaterialDesign/symbols.woff") format('woff');
37
39
  }
38
40
 
41
+
42
+ // ·
39
43
  .material-symbols,
40
44
  .material-symbols-outlined {
41
- font-family: 'Material Symbols Outlined';
45
+ font-family: "MaterialSymbols";
42
46
  font-weight: normal;
43
47
  font-style: normal;
44
48
  font-size: 24px;
@@ -54,6 +58,7 @@ Building a better future, one line of code at a time.
54
58
  }
55
59
 
56
60
 
61
+ // ·
57
62
  .material-symbols.md-18 { font-size: 18px; }
58
63
  .material-symbols.md-24 { font-size: 24px; }
59
64
  .material-symbols.md-36 { font-size: 36px; }