Monorepo for Tangled tangled.org

appview/pages/templates/repo/pulls: disable pointer events on "history" header #1226

Clicking the "History" header was allowed but did nothing meaningful, just flicker the view.

This commit disables that behavior while keeping the relevant information like the number of comments and the number of rounds selectable as they should.

Signed-off-by: eti eti@eti.tf

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:xu5apv6kmu5jp7g5hwdnej42/sh.tangled.repo.pull/3mi2dk7sj6u22
+8 -4
Diff #0
+8 -4
appview/pages/templates/repo/pulls/pull.html
··· 119 119 {{ $id := index . 0 }} 120 120 {{ $target := index . 1 }} 121 121 {{ $direction := index . 2 }} 122 - <div id="{{ $id }}" 122 + <div id="{{ $id }}" 123 123 data-resizer="vertical" 124 124 data-target="{{ $target }}" 125 125 data-direction="{{ $direction }}" ··· 179 179 text-white md:text-black md:dark:text-white 180 180 {{ $bgColor }} 181 181 md:bg-white md:dark:bg-gray-800 182 - drop-shadow-sm border-t md:border-x border-gray-200 dark:border-gray-700"> 182 + drop-shadow-sm border-t md:border-x border-gray-200 dark:border-gray-700 183 + pointer-events-none 184 + "> 183 185 <h2 class="">History</h2> 184 - {{ template "subsPanelSummary" $ }} 186 + <span class="pointer-events-auto cursor-text"> 187 + {{ template "subsPanelSummary" $ }} 188 + </span> 185 189 </summary> 186 190 <div class="max-h-[85vh] md:max-h-[calc(100vh-3rem-3rem)] w-full flex flex-col-reverse gap-4 overflow-y-auto bg-slate-100 dark:bg-gray-900 md:bg-transparent"> 187 191 {{ template "submissions" $root }} ··· 318 322 {{ $round := $item.RoundNumber }} 319 323 <div class="flex gap-2 items-center justify-between mb-1"> 320 324 <span class="inline-flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400 pt-2"> 321 - {{ $handle := resolve $root.Pull.OwnerDid }} 325 + {{ $handle := resolve $root.Pull.OwnerDid }} 322 326 <a class="text-gray-500 dark:text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" href="/{{ $handle }}">{{ $handle }}</a> 323 327 submitted 324 328 <span class="px-2 py-0.5 text-black dark:text-white bg-gray-100 dark:bg-gray-700 border-gray-300 dark:border-gray-600 rounded font-mono text-xs border">

History

1 round 0 comments
sign up or login to add to the discussion
eti.tf submitted #0
1 commit
expand
appview/pages/templates/repo/pulls: disable pointer events on "history" header
no conflicts, ready to merge
expand 0 comments