@ai-ecoverse/slicc-spectrum 1.8.1 → 1.8.3
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/dist/slicc-ui.js +13 -4
- package/dist/slicc-ui.js.map +2 -2
- package/dist/types/app/panels.d.ts +1 -1
- package/package.json +2 -2
package/dist/slicc-ui.js
CHANGED
|
@@ -6669,7 +6669,7 @@ function chatAgent(id) {
|
|
|
6669
6669
|
function chats(dock) {
|
|
6670
6670
|
return dock.api.panels.map((panel) => panel.id).filter((id) => chatAgent(id) !== null);
|
|
6671
6671
|
}
|
|
6672
|
-
function openChat(dock, agent, screen, focus = true) {
|
|
6672
|
+
function openChat(dock, agent, screen, focus = true, reveal = true) {
|
|
6673
6673
|
const id = chatId(agent.id);
|
|
6674
6674
|
if (!dock.has(id)) {
|
|
6675
6675
|
const sibling = chats(dock)[0];
|
|
@@ -6684,7 +6684,7 @@ function openChat(dock, agent, screen, focus = true) {
|
|
|
6684
6684
|
});
|
|
6685
6685
|
}
|
|
6686
6686
|
if (focus) dock.focusPanel(id);
|
|
6687
|
-
else dock.reveal(id);
|
|
6687
|
+
else if (reveal) dock.reveal(id);
|
|
6688
6688
|
return id;
|
|
6689
6689
|
}
|
|
6690
6690
|
function openDocument(dock, kind, path, screen) {
|
|
@@ -7003,7 +7003,7 @@ var SliccApp = class extends ThemedElement {
|
|
|
7003
7003
|
}
|
|
7004
7004
|
this.#prune();
|
|
7005
7005
|
const agent = this.#active();
|
|
7006
|
-
if (agent && this.#offers("chat")) openChat(dock, agent, this.screen, false);
|
|
7006
|
+
if (agent && this.#offers("chat")) openChat(dock, agent, this.screen, false, false);
|
|
7007
7007
|
}
|
|
7008
7008
|
#start(model) {
|
|
7009
7009
|
const dock = this.dock;
|
|
@@ -10139,6 +10139,7 @@ var SliccSettings = class extends ModelElement {
|
|
|
10139
10139
|
display: block;
|
|
10140
10140
|
height: 100%;
|
|
10141
10141
|
overflow-y: auto;
|
|
10142
|
+
container-type: inline-size;
|
|
10142
10143
|
background: var(--spectrum-background-layer-2-color);
|
|
10143
10144
|
color: var(--spectrum-neutral-content-color-default);
|
|
10144
10145
|
font-size: var(--spectrum-font-size-100);
|
|
@@ -10157,7 +10158,7 @@ var SliccSettings = class extends ModelElement {
|
|
|
10157
10158
|
}
|
|
10158
10159
|
.row {
|
|
10159
10160
|
display: grid;
|
|
10160
|
-
grid-template-columns: 200px 1fr;
|
|
10161
|
+
grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
|
|
10161
10162
|
align-items: center;
|
|
10162
10163
|
gap: 12px;
|
|
10163
10164
|
min-height: 40px;
|
|
@@ -10169,6 +10170,14 @@ var SliccSettings = class extends ModelElement {
|
|
|
10169
10170
|
}
|
|
10170
10171
|
sp-picker {
|
|
10171
10172
|
width: 240px;
|
|
10173
|
+
max-width: 100%;
|
|
10174
|
+
}
|
|
10175
|
+
@container (max-width: 480px) {
|
|
10176
|
+
.row {
|
|
10177
|
+
grid-template-columns: minmax(0, 1fr);
|
|
10178
|
+
gap: 4px;
|
|
10179
|
+
padding: 8px 0;
|
|
10180
|
+
}
|
|
10172
10181
|
}
|
|
10173
10182
|
.account {
|
|
10174
10183
|
display: grid;
|