forked from tangled.org/core
Monorepo for Tangled

hide commit-log on smaller screens

Changed files
+9 -6
appview
pages
templates
repo
+6 -6
appview/pages/templates/repo/index.html
··· 3 3 {{ define "repoContent" }} 4 4 <main> 5 5 {{ block "branchSelector" . }} {{ end }} 6 - <div class="flex gap-2"> 6 + <div class="grid grid-cols-1 md:grid-cols-2 gap-2"> 7 7 {{ block "fileTree" . }} {{ end }} 8 8 {{ block "commitLog" . }} {{ end }} 9 9 </div> ··· 57 57 {{ end }} 58 58 59 59 {{ define "fileTree" }} 60 - <div id="file-tree" class="w-3/5 pr-2 border-r border-gray-200"> 60 + <div id="file-tree" class="col-span-1 pr-2 md:border-r md:border-gray-200"> 61 61 {{ $containerstyle := "py-1" }} 62 62 {{ $linkstyle := "no-underline hover:underline" }} 63 63 ··· 115 115 116 116 117 117 {{ define "commitLog" }} 118 - <div id="commit-log" class="flex-1"> 118 + <div id="commit-log" class="hidden md:block md:col-span-1"> 119 119 {{ range .Commits }} 120 120 <div class="relative px-2 pb-8"> 121 121 <div id="commit-message"> ··· 174 174 class="inline-block px-1 select-none after:content-['·']" 175 175 ></div> 176 176 <span>{{ timeFmt .Author.When }}</span> 177 - <div 178 - class="inline-block px-1 select-none after:content-['·']" 179 - ></div> 180 177 {{ $tagsForCommit := index $.TagMap .Hash.String }} 181 178 {{ range $tagsForCommit }} 179 + <div 180 + class="inline-block px-1 select-none after:content-['·']" 181 + ></div> 182 182 <span class="text-xs rounded-full bg-gray-700 text-white px-2 mx-1/2 inline-flex items-center"> 183 183 {{ . }} 184 184 </span>
+3
input.css
··· 128 128 textarea { 129 129 @apply bg-white border border-black rounded-sm focus:ring-black p-2; 130 130 } 131 + details summary::-webkit-details-marker { 132 + display: none; 133 + } 131 134 } 132 135 133 136 @layer components {