summaryrefslogtreecommitdiffstats
path: root/web_src/less
diff options
context:
space:
mode:
authorGusted <williamzijl7@hotmail.com>2022-04-28 01:59:49 +0000
committerGitHub <noreply@github.com>2022-04-28 03:59:49 +0200
commitca4b920bbcbc803ef6e3d1deffefab3ab88cb1c7 (patch)
tree0630b34296a08ac5919e7f9adbaade6473d25d29 /web_src/less
parent3e8aa42a1b33e220b0f4e08df1a2b3eab5f60a9e (diff)
downloadgitea-ca4b920bbcbc803ef6e3d1deffefab3ab88cb1c7.tar.gz
gitea-ca4b920bbcbc803ef6e3d1deffefab3ab88cb1c7.zip
Make repository file list useable on mobile (#19515)
* Make repository file list useable on mobile - When you're browsing a repository on mobile, you're met by a giant block called the "repository file list". The current design is not useable for mobile and is a big annoyance while browsing a repo on mobile. This PR removes that annoyance by making it more suitable design when on mobile. - Adds HTML for the commit/file time to align it vertically(noticeable on mobile, not on PC). - Show all information horizontally and not vertically. - Remove the last commit message of the file, there isn't enough space on mobile to place this anywhere, so we're not trying to make a best-effort here and instead just not display it. * Remove unnecessary `!important` * Fix broken HTML * Simplify code
Diffstat (limited to 'web_src/less')
-rw-r--r--web_src/less/_repository.less24
1 files changed, 24 insertions, 0 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 67a79d45e5..ffbea14b99 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -3237,3 +3237,27 @@ td.blob-excerpt {
transform: scale(105%);
box-shadow: 0 .5rem 1rem var(--color-shadow) !important;
}
+
+@media @mediaSm {
+ .repository.file.list {
+ #repo-files-table {
+ .entry,
+ .commit-list {
+ align-items: center;
+ display: flex !important;
+ padding-top: 4px;
+ padding-bottom: 4px;
+
+ td.age,
+ th.age {
+ margin-left: auto;
+ }
+
+ td.message,
+ span.commit-summary {
+ display: none !important;
+ }
+ }
+ }
+ }
+}