From 95b673d8fc210ba62484c0aca3024db24adf9960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20=C5=A0korpil?= Date: Mon, 10 Jan 2022 23:33:00 +0100 Subject: [PATCH] Fixed empty display name, firefox styling, removed colors from fallback avatar --- application/src/components/Result.tsx | 2 +- application/src/pages/api/feed.ts | 15 ++++++++-- application/src/public/avatar.svg | 43 +++++++++++++++------------ application/src/styles/global.scss | 9 +++--- 4 files changed, 43 insertions(+), 26 deletions(-) diff --git a/application/src/components/Result.tsx b/application/src/components/Result.tsx index 4a1d03c..6f0de87 100644 --- a/application/src/components/Result.tsx +++ b/application/src/components/Result.tsx @@ -32,7 +32,7 @@ const Result:React.FC<{ feed:FeedResponseItem }> = ({ feed }) => {

diff --git a/application/src/pages/api/feed.ts b/application/src/pages/api/feed.ts index 293b7e5..0d5d5f3 100644 --- a/application/src/pages/api/feed.ts +++ b/application/src/pages/api/feed.ts @@ -4,7 +4,7 @@ import { feedRequestSchema } from '../../types/FeedRequest' import { NextApiRequest, NextApiResponse } from 'next' import { FeedResponse } from '../../types/FeedResponse' -const handleFeedSearch = async (req:NextApiRequest, res:NextApiResponse):Promise => { +const handleFeedSearch = async (req: NextApiRequest, res: NextApiResponse): Promise => { console.info('Searching feeds', { query: req.query }) const feedRequest = feedRequestSchema.parse(req.query) @@ -36,7 +36,18 @@ const handleFeedSearch = async (req:NextApiRequest, res:NextApiResponse - - - - - - - + + + + + diff --git a/application/src/styles/global.scss b/application/src/styles/global.scss index 3b7f6c9..ec4c253 100644 --- a/application/src/styles/global.scss +++ b/application/src/styles/global.scss @@ -101,14 +101,14 @@ a:hover { text-align: center; width: 100%; grid-gap: 1em; - box-sizing: content-box; + box-sizing: border-box; header { grid-column: start / end; grid-row: start / message; display: grid; - grid-template-columns: [start] auto [text] auto [end]; + grid-template-columns: [start] 4em [text] auto [end]; grid-template-rows: [start] auto [end]; grid-gap: 1em; @@ -172,7 +172,7 @@ form { } svg { - vertical-align: middle; + vertical-align: baseline; width: 1em; max-width: 1em; max-height: 1em; @@ -270,6 +270,7 @@ img { display: none; } img,svg{ + width: 100%; max-width: 1em; max-height: 1em; display: inline; @@ -279,7 +280,7 @@ img { } .badge{ - display: inline; + display: inline-block; margin-right: 1em; white-space: nowrap; }