dsh-foxy-game 0.1.33 → 0.1.34
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/lib/client.js +22 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -57,7 +57,8 @@ window.__ModuleLoader__.load({
|
|
|
57
57
|
'section',
|
|
58
58
|
{
|
|
59
59
|
style: {
|
|
60
|
-
margin: '
|
|
60
|
+
margin: '12px 0 4px',
|
|
61
|
+
flex: '0 0 auto',
|
|
61
62
|
padding: '16px 18px',
|
|
62
63
|
border: '1px solid rgba(127,127,127,.26)',
|
|
63
64
|
borderRadius: '10px',
|
|
@@ -83,8 +84,27 @@ window.__ModuleLoader__.load({
|
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
function withFeedback(Component) {
|
|
87
|
+
// 子插件的面板根节点是 height:100% + overflow:auto 的滚动容器,
|
|
88
|
+
// 必须用 flex 列布局给它一个确定高度,否则会失去滚动能力。
|
|
86
89
|
function FoxyPanelWithFeedback() {
|
|
87
|
-
return h(
|
|
90
|
+
return h(
|
|
91
|
+
'div',
|
|
92
|
+
{
|
|
93
|
+
style: {
|
|
94
|
+
height: '100%',
|
|
95
|
+
minHeight: 0,
|
|
96
|
+
display: 'flex',
|
|
97
|
+
flexDirection: 'column',
|
|
98
|
+
overflow: 'hidden',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
h(
|
|
102
|
+
'div',
|
|
103
|
+
{ style: { flex: '1 1 auto', minHeight: 0, display: 'flex', flexDirection: 'column' } },
|
|
104
|
+
h(Component),
|
|
105
|
+
),
|
|
106
|
+
h(FeedbackCard),
|
|
107
|
+
)
|
|
88
108
|
}
|
|
89
109
|
FoxyPanelWithFeedback.displayName = 'FoxyPanelWithFeedback'
|
|
90
110
|
return FoxyPanelWithFeedback
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-foxy-game",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"description": "Let Foxy play games with DSH: window capture, vision decisions, background input, local voice overlay and optional memory adapters.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|