From ff142a361592d731a8f2ecefe3861b9a8fe36164 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Wed, 28 Jun 2023 18:23:22 +0200 Subject: [PATCH] fix icons upscaling --- src/components/OfflineIndicator.jsx | 1 + src/components/views/Board.jsx | 38 +++++++++++++++++--------- src/components/views/Catalog.jsx | 40 +++++++++++++++++++++------- src/components/views/Description.jsx | 8 +++--- src/components/views/Rules.jsx | 8 +++--- src/components/views/Thread.jsx | 6 +++-- 6 files changed, 69 insertions(+), 32 deletions(-) diff --git a/src/components/OfflineIndicator.jsx b/src/components/OfflineIndicator.jsx index 5f017117..3630a222 100644 --- a/src/components/OfflineIndicator.jsx +++ b/src/components/OfflineIndicator.jsx @@ -17,6 +17,7 @@ const OfflineIndicator = ({ address, className, tooltipPlace }) => { data-tooltip-id="tooltip" data-tooltip-content="Offline" data-tooltip-place={tooltipPlace} + style={{imageRendering: 'pixelated'}} /> )} diff --git a/src/components/views/Board.jsx b/src/components/views/Board.jsx index e0451dcc..e1089c42 100755 --- a/src/components/views/Board.jsx +++ b/src/components/views/Board.jsx @@ -836,9 +836,11 @@ const Board = () => {   {getDate(subplebbit.createdAt)}   - Sticky + Sticky   - Closed + Closed   [ Reply @@ -911,9 +913,11 @@ const Board = () => {   - Sticky + Sticky   - Closed + Closed
{   {getDate(subplebbit.createdAt)}   - Sticky + Sticky   - Closed + Closed   [ Reply @@ -1054,9 +1060,11 @@ const Board = () => {   - Sticky + Sticky   - Closed + Closed
{ <>   Sticky + style={{marginBottom: "-3px", + imageRendering: "pixelated",}} /> ) : null} {thread.locked ? ( <>   Closed + style={{ + marginBottom: "-3px", + imageRendering: "pixelated", + }} /> ) : null}   @@ -1978,11 +1990,13 @@ const Board = () => { {thread.pinned ? ( Sticky + style={{marginBottom: "-3px", marginRight: "2px", + imageRendering: "pixelated",}} /> ) : null} {thread.locked ? ( Closed + style={{marginBottom: "-3px", marginRight: "2px", + imageRendering: "pixelated",}} /> ) : null}
diff --git a/src/components/views/Catalog.jsx b/src/components/views/Catalog.jsx index e0bcfceb..b2971af5 100755 --- a/src/components/views/Catalog.jsx +++ b/src/components/views/Catalog.jsx @@ -706,8 +706,12 @@ const Catalog = () => { R:0
- - + +
{ {subplebbit.suggested?.avatarUrl ? (
- - + +
) : null} @@ -783,8 +791,12 @@ const Catalog = () => { {subplebbit.suggested?.avatarUrl ? null : (
- - + +
)} { commentMediaInfo.thumbnail))) ? (
{thread.pinned ? ( - + ) : null} {thread.locked ? ( - + ) : null}
) : null} @@ -937,10 +953,14 @@ const Catalog = () => {
{thread.pinned ? ( - + ) : null} {thread.locked ? ( - + ) : null}
)} diff --git a/src/components/views/Description.jsx b/src/components/views/Description.jsx index 745f66ca..84c584a7 100644 --- a/src/components/views/Description.jsx +++ b/src/components/views/Description.jsx @@ -309,9 +309,9 @@ const Description = () => {   {getDate(subplebbit.createdAt)}   - Sticky + Sticky   - Closed + Closed   [ {}} style={{textDecoration: "none"}} className="reply-link">Reply @@ -379,9 +379,9 @@ const Description = () => {   - Sticky + Sticky   - Closed + Closed
{   {getDate(subplebbit.createdAt)}   - Sticky + Sticky   - Closed + Closed   [ {}} style={{textDecoration: "none"}} className="reply-link">Reply @@ -359,9 +359,9 @@ const Rules = () => {   - Sticky + Sticky   - Closed + Closed
{ <>   Sticky + style={{marginBottom: "-3px", + imageRendering: "pixelated",}} /> ) : null} {comment.locked ? ( <>   Closed + style={{marginBottom: "-3px", + imageRendering: "pixelated",}} /> ) : null}