Compare commits

...

5 Commits

Author SHA1 Message Date
lutinglt
6aef26cdc8 重叠边框线, 避免过粗 2025-08-14 00:10:46 +08:00
lutinglt
a4c94cb34d 重叠边框线, 避免过粗 2025-08-14 00:09:38 +08:00
lutinglt
8c45f44309 查看代码文件页面文件树头部有时不会固定住 2025-08-13 23:35:03 +08:00
lutinglt
1c9b02ea88 查看代码文件页面路径栏有时内容不会居中 2025-08-13 22:44:19 +08:00
lutinglt
61313d5644 ci tag 2025-08-13 22:39:10 +08:00
4 changed files with 20 additions and 41 deletions

36
.github/release.md vendored
View File

@@ -1,36 +1,4 @@
## 🎉 项目已毕业! (这是最后一版开发版本)
目前项目的主要功能开发已全部完成, 进入维护阶段.
维护阶段项目发版频率与 Gitea 发版频率保持一致, 版本号将与 Gitea 保持一致(不再附带时间戳).
每逢 Gitea 大版本更新时, 项目中间如有修复, 会发布当前版本的最后一个 `.latest` 版本. 之后会发布适配第一个大版本的 `.rc`
预发布版本, 问题不多时会发布正式版本, 正式版本之后的修复会等 Gitea 发布下一个小版本时再发布.
## 🌈 Style
- 优化创建仓库/派生仓库/迁移仓库/创建组织页面的样式与设置页面的样式一致
- 优化消息右上角小图标样式
- 优化组织页面下的 RSS 订阅按钮样式
#### 更符合 GitHub 风格
- 同步代码编辑器背景色和字体大小 (修复亮色模式下编辑器背景色问题) #12
- 同步查看代码文件内容页面/文件树样式 (包括滚动时固定的导航栏, 尽量与 GitHub 一致)
- 同步分页菜单样式
- 同步登录/注册页面样式
- 同步 Issue/PR 列表样式
- 同步 Issue/PR 详细页面侧边栏样式
- 同步仓库代码文件页 README 导航栏样式
- 同步用户点星仓库列表样式
- 优化私有标签样式
- 优化热力图和动态样式
- 优化仪表板仓库/组织列表样式
- 略微增加仓库代码文件列表的单行高度
## 🐞 Fix
- Action 作业步骤页面标题选中时滚动固定的高度
- 用户公开活动页动态布局
- 顶部导航栏工单管理/请求合并页面搜索框旁的选择下拉框按钮内容过窄
- 手机页面下注册/登录页导航栏注册按钮换行
- 查看代码文件页面路径栏有时内容不会居中
- 查看代码文件页面文件树头部有时不会固定住

View File

@@ -18,7 +18,7 @@ jobs:
- name: Create release
run: |
export TZ=Asia/Shanghai
TAG="v$(npm run -s version).$(date +%y%m%d%H%M)"
TAG="v$(npm run -s version)"
tar -zcf dist/theme-github.tar.gz --remove-files dist/theme-github-auto.css dist/theme-github-light.css dist/theme-github-dark.css dist/theme-github-soft-dark.css
gh release create "$TAG" dist/* --notes-file .github/release.md --draft -t $TAG
env:

View File

@@ -1,6 +1,6 @@
{
"name": "gitea-github-theme",
"version": "1.24.4",
"version": "1.24.5",
"description": "A theme to make Gitea look and feel like GitHub",
"type": "module",
"scripts": {

View File

@@ -151,6 +151,8 @@ export const repoFileView = css`
max-width: calc(100% - calc(2 * 16px));
}
.repo-view-container {
position: sticky;
top: 0;
// 左侧文件树
.repo-view-file-tree-container {
height: 100vh;
@@ -166,23 +168,31 @@ export const repoFileView = css`
background: ${themeVars.color.secondary.self};
}
> .repo-button-row {
height: 32px;
margin: 16px 0;
align-content: center;
background: ${themeVars.color.body};
height: 64px;
margin: 0;
position: sticky;
top: 0;
&:after {
content: "";
position: absolute;
top: 32px + 32px;
top: 64px;
left: -16px;
width: calc(100% + 16px);
height: 1px;
background: ${themeVars.color.secondary.self};
}
}
.view-file-tree-items {
margin-right: 0;
padding: 16px 16px 16px 0;
}
}
// 右侧文件视图内容
.repo-view-content {
.repo-button-row {
align-items: center;
align-content: center;
background: ${themeVars.color.box.header};
border: 1px solid ${themeVars.color.secondary.self};
border-radius: ${otherThemeVars.border.radius};
@@ -199,7 +209,8 @@ export const repoFileView = css`
z-index: 0;
h4.file-header {
position: sticky;
top: 46px;
// 重叠边框线, 避免过粗
top: 45px;
z-index: 1;
}
}