Improve UX on post collapse + some fixes + code improvements
This commit is contained in:
parent
d952cab678
commit
bacf4330bd
|
@ -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 {
|
||||
|
|
|
@ -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}")`);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue