mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 09:39:25 +00:00
fix(ui): replace widget loading text with a shimmer (#147843)
This commit is contained in:
parent
32f06f37f1
commit
0cede6c504
2 changed files with 8 additions and 3 deletions
|
|
@ -371,6 +371,8 @@ Absolute external `http(s)` embed URLs stay blocked by default. To let `[embed u
|
|||
|
||||
Widgets created by `show_widget` load through the authenticated Gateway connection in every sandbox mode, including while settings are loading. In `strict` mode, their content remains visible but scripted interactions are disabled.
|
||||
|
||||
While a widget loads, a subtle shimmer reserves its space without displaying loading text. With reduced motion enabled, the placeholder stays still.
|
||||
|
||||
The core [`show_widget`](/tools/show-widget) tool renders self-contained SVG or HTML directly from a tool call. The browser and supported native chat clients advertise the `inline-widgets` Gateway capability, and the resulting Canvas document remains available when chat history reloads. Channel plugins such as Discord Activities can register contextual presenters behind that same tool. Channel-originated runs without an eligible presenter or inline client do not receive it.
|
||||
|
||||
## Chat transcript layout
|
||||
|
|
|
|||
|
|
@ -321,9 +321,12 @@ export class OpenClawCanvasWidgetView extends OpenClawLightDomContentsElement {
|
|||
</div>`;
|
||||
}
|
||||
if (!this.view || !this.context) {
|
||||
return html`<div role="status" style=${`min-height:${this.preferredHeight ?? 420}px`}>
|
||||
${t("common.loading")}
|
||||
</div>`;
|
||||
return html`<div
|
||||
class="skeleton"
|
||||
role="status"
|
||||
aria-label=${t("common.loading")}
|
||||
style=${`min-height:${this.preferredHeight ?? 420}px`}
|
||||
></div>`;
|
||||
}
|
||||
let src: string | undefined;
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue