Improve UX on post collapse + some fixes + code improvements

This commit is contained in:
Niko 2022-02-20 17:48:01 +01:00
parent d952cab678
commit bacf4330bd
3 changed files with 10 additions and 7 deletions

View File

@ -211,8 +211,12 @@ main {
}
*[id*="collapse-link-"][collapsed="true"] .link {
padding: 2em !important;
padding-bottom: .8em !important;
}
*[id*="collapse-link-"] .link {
padding: 2em;
padding-bottom: .8em;
padding-top: .2em;
}
.item .acct {

View File

@ -257,7 +257,7 @@ app.overlay = {
const div = document.createElement('div');
data['oid'] = id;
div.id = id;
div.className = 'overlay dark';
div.className = 'overlay height-mobile dark';
div.innerHTML = app.template.fill(data, tpl);
if (removable)
div.setAttribute('onclick', `app.overlay.remove("${id}")`);

View File

@ -42,8 +42,7 @@ app.pages.meet = {
},
paint: function(json) {
json = json || app.pages.meet.data;
let _;
_ = function () {
(function() {
const dom = document.querySelector('#page-meet #content');
dom.innerHTML = '';
for (var i = 0; i < json.length; i++) {
@ -110,13 +109,13 @@ app.pages.meet = {
}
}
}
}; _();
_ = function () {
})();
(function () {
const dom = document.querySelector('#page-meet #actions');
dom.innerHTML = '';
var tpl = app.template.fill({}, app.template.get('meet.actions'));
dom.innerHTML += tpl;
}; _();
})();
(function() {
const dom = document.querySelector('#page-meet #trail');
if (dom === null) return;