Skip to content

Commit

Permalink
better unstyled layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Flolon committed Jan 14, 2025
1 parent c0012e5 commit 68d6097
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions components/AttachmentBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class AttachmentBlockComponent extends HTMLElement {
<style>
@import url("/css/global.css");
@import url("/css/post.css");
#source { max-width: 100%; }
</style>
`;
#shadowDomHTMLImg = `
Expand Down
25 changes: 13 additions & 12 deletions components/PostBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,33 @@ class PostBlockComponent extends HTMLElement {
white-space: pre-wrap;
}
</style>
<span class="post flexcontainer flexcolumn">
<a id="titleLink" class="posttitle leftalign width100"></a>
<span class="flexcontainer leftalign width100">
<div class="post flexcontainer flexcolumn">
<div class="width100">
<a id="titleLink" class="posttitle leftalign width100"></a
</div>
<div class="flexcontainer leftalign width100">
<a id="userLink" class="flexcontainer">
<img id="pfp" class="pfp"></img>
<img id="pfp" class="pfp" width="55px"></img>
<span id="username"></span>
</a>
<stibarc-icon id="verified" type="verifiedBadge" name="verified" class="verifiedBadge hidden" title="Verified"></stibarc-icon>
<span id="pronouns" class="pronouns"></span>
</span>
<span id="date" class="postdate leftalign width100">
</span>
</div>
<div id="date" class="postdate leftalign width100"></div>
<hr class="width100">
<span id="postcontent" class="postcontent flexcolumn leftalign width100">
<div id="postcontent" class="postcontent flexcolumn leftalign width100">
<span id="posttextcontent"></span>
</span>
</div>
<hr class="width100">
<span class="leftalign width100 metaSpan">
<div class="leftalign width100 metaSpan">
<stibarc-icon name="up_arrow"></stibarc-icon>
<span id="upvotes"></span>
<stibarc-icon name="down_arrow"></stibarc-icon>
<span id="downvotes"></span>
<stibarc-icon name="comment"></stibarc-icon>
<span id="comments"></span>
</span>
</span>
</div>
</div>
`;
post;

Expand Down
3 changes: 2 additions & 1 deletion components/UserBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ class UserBlockComponent extends HTMLElement {
<script src="/components/Icon.js"></script>
<style>
@import url("/css/global.css");
img { max-width: 100%; }
</style>
<span class="post flexcontainer leftalign width100">
<a id="userLink" class="flexcontainer">
<img id="pfp" class="pfp"></img>
<img id="pfp" class="pfp" width="55px">
<span id="username"></span>
</a>
<stibarc-icon id="verified" type="verifiedBadge" name="verified" class="verifiedBadge hidden" title="Verified"></stibarc-icon>
Expand Down

0 comments on commit 68d6097

Please sign in to comment.