ssb-chess-mithril 2.0.7 → 2.0.9

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/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  Correspondence chess built on top of the scuttlebutt platform. More information about scuttlebutt here: https://staltz.com/an-off-grid-social-network.html and [https://www.scuttlebutt.nz/](https://www.scuttlebutt.nz/)
4
4
 
5
- It is built to allow it to be integrated into scuttlebutt viewers (such as [patchbay](https://www.github.com/ssbc/patchbay), [patchwork](https://www.github.com/ssbc/patchbay) using [depject](https://github.com/depject/depject) so that they can take care of things like discovering friends to play with, etc.
5
+ It is built to allow it to be integrated into scuttlebutt viewers (such as [patchbay](https://www.github.com/ssbc/patchbay), [patchwork](https://www.github.com/soapdog/patchwork) using [depject](https://github.com/depject/depject) so that they can take care of things like discovering friends to play with, etc.
6
+
7
+ It is currently integrated into this fork of [patchwork](https://github.com/soapdog/patchwork/).
6
8
 
7
9
  ### Installation
8
10
 
package/css/game.css CHANGED
@@ -25,6 +25,8 @@
25
25
  }
26
26
 
27
27
  .ssb-embedded-chat-messages {
28
+ padding-top: 10px;
29
+ padding-left: 5px;
28
30
  width: 99%;
29
31
  height: 430px;
30
32
  border: 1px black solid;
@@ -33,7 +35,7 @@
33
35
  .ssb-embedded-chat-message {
34
36
  margin-left: 5px;
35
37
  margin-right: 5px;
36
- margin-bottom: 2px;
38
+ margin-bottom: 4px;
37
39
  }
38
40
 
39
41
  .ssb-embedded-chat-message-old {
package/css/global.css CHANGED
@@ -8,9 +8,7 @@
8
8
  }
9
9
 
10
10
  .ssb-chess-container {
11
- height: 100%;
12
- width: 100%;
13
- overflow: scroll;
11
+ font-size: 14px;
14
12
  }
15
13
 
16
14
  #ssb-chess-settings-dialog {
package/index.js CHANGED
@@ -117,7 +117,11 @@ module.exports = (attachToElement, dataAccess, opts = {}) => {
117
117
 
118
118
  const settingsCtrl = mainCtrl.getSettingsCtrl();
119
119
 
120
- const mainBody = attachToElement;
120
+ const mainBody = document.createElement('div');
121
+ mainBody.className = 'ssb-chess-container'
122
+
123
+ attachToElement.appendChild(mainBody);
124
+
121
125
  const navDiv = document.createElement('div');
122
126
  navDiv.id = 'ssb-nav';
123
127
  const bodyDiv = document.createElement('div');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssb-chess-mithril",
3
- "version": "2.0.7",
3
+ "version": "2.0.9",
4
4
  "description": "An ssb-chess client",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,14 +18,13 @@
18
18
  "howler": "^2.0.15",
19
19
  "human-time": "0.0.2",
20
20
  "hyperscript": "^2.0.2",
21
- "lodash": "^4.17.11",
22
21
  "mithril": "1.1.7",
23
22
  "mutant": "3.29.0",
24
23
  "pubsub-js": "^1.7.0",
25
24
  "pull-scroll": "^1.0.9",
26
25
  "pull-stream": "^3.6.14",
27
26
  "ramda": "^0.25.0",
28
- "ssb-chess": "4.0.4",
29
- "ssb-embedded-chat": "2.0.1"
27
+ "ssb-chess": "4.0.5",
28
+ "ssb-embedded-chat": "2.0.2"
30
29
  }
31
30
  }