mirror of
https://github.com/esphome/esphome.git
synced 2025-10-23 04:03:52 +01:00
tweak
This commit is contained in:
@@ -157,8 +157,14 @@ def create_symbol_changes_table(
|
|||||||
target_str = format_bytes(target_size)
|
target_str = format_bytes(target_size)
|
||||||
pr_str = format_bytes(pr_size)
|
pr_str = format_bytes(pr_size)
|
||||||
change_str = format_change(target_size, pr_size)
|
change_str = format_change(target_size, pr_size)
|
||||||
# Truncate very long symbol names
|
# Truncate very long symbol names but show full name in title attribute
|
||||||
display_symbol = symbol if len(symbol) <= 80 else symbol[:77] + "..."
|
if len(symbol) <= 100:
|
||||||
|
display_symbol = symbol
|
||||||
|
else:
|
||||||
|
# Use HTML details for very long symbols
|
||||||
|
display_symbol = (
|
||||||
|
f"<details><summary>{symbol[:97]}...</summary>{symbol}</details>"
|
||||||
|
)
|
||||||
lines.append(
|
lines.append(
|
||||||
f"| `{display_symbol}` | {target_str} | {pr_str} | {change_str} |"
|
f"| `{display_symbol}` | {target_str} | {pr_str} | {change_str} |"
|
||||||
)
|
)
|
||||||
@@ -261,8 +267,8 @@ def create_detailed_breakdown_table(
|
|||||||
# Build table - limit to top 20 changes
|
# Build table - limit to top 20 changes
|
||||||
lines = [
|
lines = [
|
||||||
"",
|
"",
|
||||||
"<details>",
|
"<details open>",
|
||||||
"<summary>📊 Component Memory Breakdown (click to expand)</summary>",
|
"<summary>📊 Component Memory Breakdown</summary>",
|
||||||
"",
|
"",
|
||||||
"| Component | Target Flash | PR Flash | Change |",
|
"| Component | Target Flash | PR Flash | Change |",
|
||||||
"|-----------|--------------|----------|--------|",
|
"|-----------|--------------|----------|--------|",
|
||||||
|
Reference in New Issue
Block a user