This commit is contained in:
hzrd149 2023-12-09 07:21:57 -06:00
parent 85af490738
commit 48fd8e14d2
2 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,13 @@
# syntax=docker/dockerfile:1
FROM node:20
FROM node:20 as builder
WORKDIR /app
COPY . /app/
ENV VITE_COMMIT_HASH=""
ENV VITE_APP_VERSION="custom"
RUN yarn install && yarn build
FROM nginx:stable-alpine-slim
EXPOSE 80
COPY --from=0 /app/dist /usr/share/nginx/html
COPY --from=builder /app/dist /usr/share/nginx/html

View File

@ -24,8 +24,10 @@ function AccountItem({ account, onClick }: { account: Account; onClick?: () => v
<Box display="flex" gap="2" alignItems="center" cursor="pointer">
<Flex as="button" onClick={handleClick} flex={1} gap="2" overflow="hidden" alignItems="center">
<UserAvatar pubkey={pubkey} size="md" />
<Text isTruncated>{getUserDisplayName(metadata, pubkey)}</Text>
<AccountInfoBadge fontSize="0.7em" account={account} />
<Flex direction="column" overflow="hidden" alignItems="flex-start">
<Text isTruncated>{getUserDisplayName(metadata, pubkey)}</Text>
<AccountInfoBadge fontSize="0.7em" account={account} />
</Flex>
</Flex>
<IconButton
icon={<CloseIcon />}