client/posts: add transparency grid

Can be turned off in browsing settings.
This commit is contained in:
rr-
2016-06-11 21:50:21 +02:00
parent 07603be35e
commit 56432e6089
7 changed files with 17 additions and 2 deletions

View File

@ -86,6 +86,9 @@ class PostContentControl {
const postContentNode = this._template({
post: this._post,
});
if (settings.getSettings().transparencyGrid) {
postContentNode.classList.add('transparency-grid');
}
this._containerNode.appendChild(postContentNode);
optimizedResize.add(() => this._refreshSize());
views.monitorNodeRemoval(