From de133f5aac278eb3cb8d1a7647146f36018f5ff8 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Sun, 9 Feb 2025 19:19:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E4=B8=8B=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 1 + src/repo.scss | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/.github/release.md b/.github/release.md index 57c7f0c..a078010 100644 --- a/.github/release.md +++ b/.github/release.md @@ -3,5 +3,6 @@ #### 更符合 GitHub 风格 - 仓库代码页侧边栏宽度调整 +- 仓库文件列表在手机下隐藏提交信息 - 下拉菜单分割线调整 - 动画效果优化 \ No newline at end of file diff --git a/src/repo.scss b/src/repo.scss index 9f7f526..e722cea 100644 --- a/src/repo.scss +++ b/src/repo.scss @@ -182,11 +182,38 @@ } } +// 手机下隐藏提交信息 +@media (max-width: 767.98px) { + #repo-files-table { + grid-template-columns: 1fr auto; + + .repo-file-line { + grid-column: 1 / span 2; + } + + .repo-file-cell { + &.name { + max-width: none; + } + + &.message { + display: none; + } + } + } +} + // 仓库代码布局调整, 侧边栏宽度调整 .repo-grid-filelist-sidebar { grid-template-columns: auto 296px; } +@media (max-width: 767.98px) { + .repo-grid-filelist-sidebar { + grid-template-columns: 100%; + } +} + // 仓库代码页面侧边栏 .page-content.repository { .repo-home-sidebar-top { @@ -198,6 +225,7 @@ .flex-item-title { margin-top: 2px; } + .flex-item-body { padding: 8px 0;