@axium/notes 0.2.2 → 0.2.4

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.
package/db.json CHANGED
@@ -23,6 +23,9 @@
23
23
  "itemId": { "type": "uuid", "required": true, "references": "notes.id", "onDelete": "cascade" },
24
24
  "createdAt": { "type": "timestamptz", "required": true, "default": "now()" },
25
25
  "permission": { "type": "integer", "required": true, "check": "permission >= 0 AND permission <= 5" }
26
+ },
27
+ "constraints": {
28
+ "PK_acl_notes": { "type": "primary_key", "on": ["userId", "itemId"] }
26
29
  }
27
30
  }
28
31
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/notes",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "description": "Notes for Axium",
6
6
  "funding": {
@@ -13,7 +13,7 @@
13
13
  <title>Notes</title>
14
14
  </svelte:head>
15
15
 
16
- <div class="notes-main">
16
+ <div id="notes-main">
17
17
  <h1>Notes</h1>
18
18
  <button
19
19
  id="create-note"
@@ -34,7 +34,7 @@
34
34
  </div>
35
35
 
36
36
  <style>
37
- .notes-main {
37
+ #notes-main {
38
38
  padding: 2em;
39
39
  inset: 0;
40
40
  display: flex;
@@ -51,4 +51,18 @@
51
51
  #create-note {
52
52
  width: fit-content;
53
53
  }
54
+
55
+ @media (width < 700px) {
56
+ #notes-main {
57
+ padding: 1em;
58
+ align-content: center;
59
+ }
60
+
61
+ .lists-container {
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: 1em;
65
+ align-content: center;
66
+ }
67
+ }
54
68
  </style>