Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Dec 14, 2024
1 parent 4df91b8 commit 16868de
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/components/DashboardPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ const activityImageStyles = css`
height: 100%;
object-fit: contain;
border-radius: 6px;
background: black;
`;

const activityDetailsStyles = css`
Expand Down Expand Up @@ -590,7 +589,7 @@ const PresenceItem = (props: { presence: Presence }) => {

const imgSrc = createMemo(() => {
if (activity()?.emoji) {
return emojiToUrl(activity()?.emoji!, false);
return emojiToUrl(activity()?.emoji!, false, 90);
}
if (!activity()?.imgSrc) return;
return `${env.NERIMITY_CDN}proxy/${encodeURIComponent(
Expand Down
3 changes: 2 additions & 1 deletion src/components/floating-profile/FloatingProfile.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ body .postItemContainer {
width: 60px;
height: 60px;
border-radius: 6px;
object-fit: cover;
object-fit: contain;
&.videoActivityImg {
width: initial;
object-fit: cover;
aspect-ratio: 16/9;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/floating-profile/FloatingProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ export const UserActivity = (props: {

const imgSrc = createMemo(() => {
if (activity()?.emoji) {
return emojiToUrl(activity()?.emoji!, false);
return emojiToUrl(activity()?.emoji!, false, 90);
}
if (!activity()?.imgSrc) return;
return `${env.NERIMITY_CDN}proxy/${encodeURIComponent(
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile-pane/ProfilePane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ const UserActivity = (props: {

const imgSrc = createMemo(() => {
if (activity()?.emoji) {
return emojiToUrl(activity()?.emoji!, false);
return emojiToUrl(activity()?.emoji!, false, 90);
}
if (!activity()?.imgSrc) return;
return `${env.NERIMITY_CDN}proxy/${encodeURIComponent(
Expand Down
5 changes: 3 additions & 2 deletions src/components/profile-pane/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,13 @@
.activityImg {
width: 60px;
border-radius: 6px;
object-fit: cover;
object-fit: contain;
aspect-ratio: 1/1;

&.videoActivityImg {
width: 100%;
max-width: 200px;
object-fit: cover;
aspect-ratio: 16/9;
}
}
Expand Down

0 comments on commit 16868de

Please sign in to comment.