minor UI fixes

This commit is contained in:
sairaj mote 2022-07-11 20:20:43 +05:30
parent 02b5b68016
commit 3ae866a08c
4 changed files with 8 additions and 5 deletions

View File

@ -593,6 +593,7 @@ sm-copy {
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
margin-right: auto;
} }
#options_panel { #options_panel {

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -555,6 +555,7 @@ sm-copy {
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
margin-right: auto;
} }
#options_panel { #options_panel {

View File

@ -519,7 +519,7 @@
</div> </div>
</header> </header>
<div class="grid gap-2"> <div class="grid gap-2">
<details id="plot_wrapper" class="hidden"> <details id="plot_wrapper" class="hidden" open>
<summary class="interact"> <summary class="interact">
<b style="font-size: 0.9rem;">See plot diagram</b> <b style="font-size: 0.9rem;">See plot diagram</b>
<svg class="icon down-arrow" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" <svg class="icon down-arrow" xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24"
@ -593,10 +593,11 @@
</h4> </h4>
<p> <p>
You can use your FLO private key to perform transaction on BTC network within our apps ecosystem. You can use your FLO private key to perform transaction on BTC network within our apps ecosystem.
The private key is same for both.
</p> </p>
</div> </div>
<div class="grid gap-0-5"> <div class="grid gap-0-5">
<h5>My FLO ID</h5> <h5>My FLO address</h5>
<sm-copy id="user_flo_id"></sm-copy> <sm-copy id="user_flo_id"></sm-copy>
</div> </div>
<div class="grid gap-0-5"> <div class="grid gap-0-5">
@ -1679,7 +1680,7 @@
} }
getRef('current_article_title').textContent = title getRef('current_article_title').textContent = title
getRef('article_wrapper').innerHTML = '' getRef('article_wrapper').innerHTML = ''
if (!floGlobals.isSubAdmin && focusMode) { if (!floGlobals.isSubAdmin && focusMode && floGlobals.appObjects.cc.defaultArticle === id) {
getRef('article_wrapper').append(render.section(assignedSection, sections[assignedSection])) getRef('article_wrapper').append(render.section(assignedSection, sections[assignedSection]))
getRef('article_wrapper').append(html.node` getRef('article_wrapper').append(html.node`
<div id="focus_mode_panel" class="flex align-center space-between"> <div id="focus_mode_panel" class="flex align-center space-between">
@ -1828,7 +1829,7 @@
renderElem(getRef('article_outline'), html`${sections}`) renderElem(getRef('article_outline'), html`${sections}`)
if (floGlobals.appObjects[floGlobals.currentArticle.id].hasOwnProperty('plot')) { if (floGlobals.appObjects[floGlobals.currentArticle.id].hasOwnProperty('plot')) {
getRef('plot_diagram').textContent = floGlobals.appObjects[floGlobals.currentArticle.id].plot getRef('plot_diagram').innerText = floGlobals.appObjects[floGlobals.currentArticle.id].plot.replace(/->/g, '\n').replace(/\(|\)/g, '')
getRef('plot_wrapper').classList.remove('hidden') getRef('plot_wrapper').classList.remove('hidden')
} else { } else {
getRef('plot_wrapper').classList.add('hidden') getRef('plot_wrapper').classList.add('hidden')