web: don't show threads in reply compose view
Sometimes it gets too large and scrolls of the screen. Temporary fix until I have something better
This commit is contained in:
parent
94371bcc52
commit
eec07c3b1b
2 changed files with 6 additions and 4 deletions
|
@ -555,8 +555,10 @@ const DEFAULT_PROFILE = {
|
|||
display_name: "Anonymous",
|
||||
}
|
||||
|
||||
function render_thread_collapsed(model, reply_ev)
|
||||
function render_thread_collapsed(model, reply_ev, opts)
|
||||
{
|
||||
if (opts.is_composing)
|
||||
return ""
|
||||
return `<div onclick="expand_thread('${reply_ev.id}')" class="thread-collapsed clickable">...</div>`
|
||||
}
|
||||
|
||||
|
@ -935,7 +937,7 @@ function reply_to(evid) {
|
|||
|
||||
replying_to.dataset.evid = evid
|
||||
const ev = DSTATE.all_events[evid]
|
||||
replying_to.innerHTML = render_event(DSTATE, ev, {is_composing: true, nobar: true, max_depth: 2})
|
||||
replying_to.innerHTML = render_event(DSTATE, ev, {is_composing: true, nobar: true, max_depth: 1})
|
||||
|
||||
modal.style.display = replying? "block" : "none";
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<title>Damus</title>
|
||||
|
||||
<link rel="stylesheet" href="damus.css?v=11">
|
||||
<link rel="stylesheet" href="damus.css?v=12">
|
||||
</head>
|
||||
<body>
|
||||
<section class="header">
|
||||
|
@ -41,7 +41,7 @@
|
|||
<script src="noble-secp256k1.js?v=1"></script>
|
||||
<script src="bech32.js?v=1"></script>
|
||||
<script src="nostr.js?v=6"></script>
|
||||
<script src="damus.js?v=43"></script>
|
||||
<script src="damus.js?v=44"></script>
|
||||
<script>
|
||||
// I have to delay loading to wait for nos2x
|
||||
const relay = setTimeout(damus_web_init, 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue