Skip to content

Commit 7279fc4

Browse files
authored
Update unity-forum-fixer.js
swap views and replies positions, make replies bigger and views number smaller
1 parent 7fa0b0f commit 7279fc4

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

unity-forum-fixer.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,15 @@ function AppendCustomCSS()
127127
/* added custom fields */
128128
.original-poster-span {font: 13px 'Inter', sans-serif !important; color: rgb(150, 150, 150); } /* original poster below post title */
129129
.latest-poster-span { display: block; word-break: break-all; max-width: 100%; font: 14px 'Inter', sans-serif !important;} /* activity, latest poster */
130-
.combined-views-container {display: flex;justify-content: space-between;width: 100%;white-space: nowrap; font-size:13px;}
130+
131+
.combined-replies-container {display: flex;justify-content: space-between;width: 100%;white-space: nowrap; font-size:14px; margin-bottom:2px;}
132+
.combined-views-container {display: flex;justify-content: space-between;width: 100%;white-space: nowrap; font-size:13px;}
133+
134+
.combined-replies-label {color: rgb(150, 150, 150); text-align: left;}
135+
.combined-replies-number {color: var(--primary); margin-left: auto;text-align: right; font-size:15px !important;}
131136
.combined-views-label {color: rgb(150, 150, 150); text-align: left;}
132-
.combined-views-number {color: var(--primary); margin-left: auto;text-align: right;}
137+
.combined-views-number {color: rgb(150, 150, 150); margin-left: auto;text-align: right;}
138+
133139
.custom-post-username {margin-bottom:3px;color: var(--primary);}
134140
.custom-user-creation-date {width:45px;margin-top:6px;font: 13px 'Inter', sans-serif !important; color: rgb(150, 150, 150);}
135141
.custom-post-preview { position: absolute; max-width: 450px; max-height: 200px; background-color: white; border: 1px solid black; padding: 5px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); z-index: 1000; }
@@ -258,14 +264,14 @@ function TopicsViewCombineViewAndReplyCounts()
258264
combinedCell.className = 'num topic-list-data combined-views'; // Add class for styling if needed
259265

260266
combinedCell.innerHTML = `
267+
<div class="combined-replies-container">
268+
<span class="combined-replies-label">Replies:</span>
269+
<span class="combined-replies-number">${repliesCell.innerText}</span>
270+
</div>
261271
<div class="combined-views-container">
262272
<span class="combined-views-label">Views:</span>
263273
<span class="combined-views-number">${viewsCell.innerText}</span>
264274
</div>
265-
<div class="combined-views-container">
266-
<span class="combined-views-label">Replies:</span>
267-
<span class="combined-views-number">${repliesCell.innerText}</span>
268-
</div>
269275
`;
270276

271277
// Insert the combined cell after the Replies cell

0 commit comments

Comments
 (0)