mirror of
https://github.com/ajvpot/meshexplorer.git
synced 2026-03-28 17:42:58 +01:00
emoji
This commit is contained in:
@@ -32,10 +32,8 @@ ENV NODE_ENV production
|
||||
# Install fonts for Sharp text rendering
|
||||
RUN apk add --no-cache \
|
||||
fontconfig \
|
||||
ttf-dejavu \
|
||||
ttf-liberation \
|
||||
ttf-opensans \
|
||||
font-noto \
|
||||
font-noto-emoji \
|
||||
&& fc-cache -f
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
|
||||
@@ -179,7 +179,7 @@ export function formatMeshcoreMessageForDiscord(
|
||||
const content = `${text}\n-# _Heard ${heardCount} times by [MeshExplorer](https://map.w0z.is/messages)_`;
|
||||
|
||||
// Generate profile picture URL using the new API
|
||||
const profilePictureUrl = `https://map.w0z.is/api/meshcore/profilepicture.png?name=${encodeURIComponent(sender)}`;
|
||||
const profilePictureUrl = `https://map.w0z.is/api/meshcore/profilepicture.png?name=${encodeURIComponent(sender)}&v=2`;
|
||||
|
||||
return {
|
||||
username: sender,
|
||||
|
||||
@@ -52,7 +52,7 @@ async function generateProfilePicturePNG(backgroundColor: string, label: string)
|
||||
y="50%"
|
||||
text-anchor="middle"
|
||||
dominant-baseline="central"
|
||||
font-family="DejaVu Sans, Liberation Sans, Arial, sans-serif"
|
||||
font-family="Noto Sans, Noto Color Emoji, sans-serif"
|
||||
font-size="${fontSize}"
|
||||
fill="white"
|
||||
>${escapeXml(label)}</text>
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-geist-sans);
|
||||
--font-mono: var(--font-geist-mono);
|
||||
--font-sans: var(--font-noto-sans), "Noto Sans", sans-serif;
|
||||
--font-mono: var(--font-noto-sans), "Noto Sans", sans-serif;
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
|
||||
Reference in New Issue
Block a user