From 48eb13b993a237b714495b422d0cc85ac57ef307 Mon Sep 17 00:00:00 2001 From: linkong Date: Tue, 14 Apr 2026 10:55:04 +0800 Subject: [PATCH] release: bump version to 0.27.2 Co-Authored-By: Claude Sonnet 4.6 --- VERSION | 2 +- docs/CHANGELOG.md | 8 ++++++++ docs/version-history.md | 3 ++- frontend/package.json | 2 +- frontend/public/earth/css/info-panel.css | 22 +++++++++++++--------- pyproject.toml | 2 +- uv.lock | 2 +- 7 files changed, 27 insertions(+), 14 deletions(-) diff --git a/VERSION b/VERSION index 83b47304..3edc695d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.27.1 +0.27.2 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index cc248fd8..7c0aeb56 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,14 @@ This project follows the repository versioning rule: - `improvement` -> `+0.0.1`(bugfix + 小功能混合) - `bugfix` -> `+0.0.1` +## [0.27.2] — 2026-04-14 + +### 🔧 Improvements +- 修复 brand copy 宽度不随内容收缩的问题,现在与 title 图片宽度保持一致 +- 提取 `--brand-copy-width` CSS 自定义属性,消除 160px / 172px 魔法数字重复 + +--- + ## [0.27.1] — 2026-04-14 ### 🔧 Improvements diff --git a/docs/version-history.md b/docs/version-history.md index bc053719..85b1a393 100644 --- a/docs/version-history.md +++ b/docs/version-history.md @@ -16,12 +16,13 @@ ## Current Version - `main` 当前主线历史推导到:`0.16.5` -- `dev` 当前开发分支历史推导到:`0.27.1` +- `dev` 当前开发分支历史推导到:`0.27.2` ## Timeline | Version | Type | Branch | Commit | Summary | | --- | --- | --- | --- | --- | +| `0.27.2` | improvement | `dev` | — | 修复 brand copy 宽度问题,提取 --brand-copy-width CSS 变量 | | `0.27.1` | improvement | `dev` | — | HUD 面板拖拽 L 形边界约束、brand 组件整体缩放、图层面板宽度优化、搜索叉叉修复 | | `0.27.0` | feature | `dev` | — | Earth HUD 重构:图层面板、信息卡片悬浮定位、Fresnel 大气层渲染 | | `0.0.1-beta` | bootstrap | `main` | `e7033775` | first commit | diff --git a/frontend/package.json b/frontend/package.json index 3ff0b8d6..32600870 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "planet-frontend", - "version": "0.27.1", + "version": "0.27.2", "private": true, "packageManager": "bun@1", "dependencies": { diff --git a/frontend/public/earth/css/info-panel.css b/frontend/public/earth/css/info-panel.css index 91539fca..e1237918 100644 --- a/frontend/public/earth/css/info-panel.css +++ b/frontend/public/earth/css/info-panel.css @@ -25,6 +25,7 @@ .hud-panel-brand { --brand-scale: 0.88; + --brand-copy-width: 160px; border-radius: 0; padding: calc(18px * var(--hud-scale)) calc(20px * var(--hud-scale)); display: flex; @@ -51,16 +52,16 @@ .hud-panel-brand .earth-brand__copy { display: flex; - flex: 1 1 auto; - min-width: 0; + flex: 0 0 auto; flex-direction: column; justify-content: center; gap: calc(5px * var(--hud-scale) * var(--brand-scale)); + width: calc(var(--brand-copy-width) * var(--hud-scale) * var(--brand-scale)); } .hud-panel-brand .earth-brand__title { display: block; - width: min(100%, calc(160px * var(--hud-scale) * var(--brand-scale))); + width: min(100%, calc(var(--brand-copy-width) * var(--hud-scale) * var(--brand-scale))); max-width: 100%; height: auto; min-height: calc(20px * var(--hud-scale) * var(--brand-scale)); @@ -80,9 +81,6 @@ line-height: 1.3; font-weight: 500; letter-spacing: 0.01em; - /* Prevent text from pushing brand wider than logo column */ - width: fit-content; - max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; @@ -93,15 +91,21 @@ font-size: calc(0.6rem * var(--hud-scale) * var(--brand-scale)); line-height: 1.3; letter-spacing: 0.08em; - width: fit-content; - max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } +.hud-panel-brand .earth-brand--en { + --brand-copy-width: 172px; +} + .hud-panel-brand .earth-brand--en .earth-brand__title { - width: min(100%, calc(172px * var(--hud-scale) * var(--brand-scale))); + width: min(100%, calc(var(--brand-copy-width) * var(--hud-scale) * var(--brand-scale))); +} + +.hud-panel-brand .earth-brand--en .earth-brand__copy { + width: calc(var(--brand-copy-width) * var(--hud-scale) * var(--brand-scale)); } .hud-panel-brand .earth-brand--en .earth-brand__subtitle, diff --git a/pyproject.toml b/pyproject.toml index 2d6af6c3..6c759c06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "planet" -version = "0.27.1" +version = "0.27.2" description = "智能星球计划 - 态势感知系统" requires-python = ">=3.14" dependencies = [ diff --git a/uv.lock b/uv.lock index 7e53e530..c2f6ad54 100644 --- a/uv.lock +++ b/uv.lock @@ -475,7 +475,7 @@ wheels = [ [[package]] name = "planet" -version = "0.27.1" +version = "0.27.2" source = { virtual = "." } dependencies = [ { name = "aiofiles" },