30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
---
|
|
id: TASK-83
|
|
title: Fix tab-cache inline style extraction for canvas toolbar
|
|
status: Done
|
|
assignee: []
|
|
created_date: '2026-03-03 07:42'
|
|
labels:
|
|
- bugfix
|
|
- canvas
|
|
- tab-cache
|
|
dependencies: []
|
|
references:
|
|
- shared/tab-cache.ts
|
|
priority: high
|
|
---
|
|
|
|
## Description
|
|
|
|
<!-- SECTION:DESCRIPTION:BEGIN -->
|
|
The tab-cache system (shared/tab-cache.ts) only extracted <link rel="stylesheet"> tags when switching tabs, missing inline <style> blocks. The canvas toolbar CSS is entirely in inline <style> blocks in canvas.html, causing unstyled toolbar when switching to rSpace via tab cache.
|
|
|
|
Fixed extractContent() to also collect inline <style> blocks from fetched page heads, and loadAssets() to inject them with data-tab-style attributes for deduplication.
|
|
<!-- SECTION:DESCRIPTION:END -->
|
|
|
|
## Final Summary
|
|
|
|
<!-- SECTION:FINAL_SUMMARY:BEGIN -->
|
|
Added inline <style> block extraction to tab-cache's extractContent() and injection in loadAssets(). Toolbar now renders correctly when switching to rSpace tab via client-side navigation. Committed as 4819852.
|
|
<!-- SECTION:FINAL_SUMMARY:END -->
|