From 846991332a284813b5d18e2bda8ef26746b0bccb Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 21 May 2024 16:29:30 +0530 Subject: [PATCH] [WEB-1385] style: oauth button enhancement (#4539) * style: oauth button enhancement * style: space app applied issue filter section styling updated * style: space app sidebar icon consistency * chore: issue title input improvement * fix: create workspace and invite workspace theme issue * fix: member invite modal improvement --- .../filters/applied-filters/filters-list.tsx | 2 +- .../issues/peek-overview/header.tsx | 6 +- .../issues/peek-overview/issue-reaction.tsx | 1 - .../peek-overview/issue-vote-reactions.tsx | 4 +- .../account/oauth/github-button.tsx | 4 +- .../account/oauth/google-button.tsx | 4 +- web/components/issues/title-input.tsx | 85 +++++++++++-------- .../project/send-project-invitation-modal.tsx | 10 +-- .../send-workspace-invitation-modal.tsx | 73 +++++++++------- web/pages/create-workspace.tsx | 4 +- web/pages/invitations/index.tsx | 4 +- 11 files changed, 108 insertions(+), 89 deletions(-) diff --git a/space/components/issues/filters/applied-filters/filters-list.tsx b/space/components/issues/filters/applied-filters/filters-list.tsx index cec23d301..83d651f5d 100644 --- a/space/components/issues/filters/applied-filters/filters-list.tsx +++ b/space/components/issues/filters/applied-filters/filters-list.tsx @@ -23,7 +23,7 @@ export const AppliedFiltersList: React.FC = observer((props) => { const { appliedFilters = {}, handleRemoveAllFilters, handleRemoveFilter, states } = props; return ( -
+
{Object.entries(appliedFilters).map(([key, value]) => { const filterKey = key as keyof TFilters; const filterValue = value as TFilters[keyof TFilters]; diff --git a/space/components/issues/peek-overview/header.tsx b/space/components/issues/peek-overview/header.tsx index 3b8e2960f..4200458a8 100644 --- a/space/components/issues/peek-overview/header.tsx +++ b/space/components/issues/peek-overview/header.tsx @@ -62,7 +62,7 @@ export const PeekOverviewHeader: React.FC = observer((props) => {
{peekMode === "side" && ( )} = observer((props) => { className="relative flex-shrink-0 text-left" > - m.key === peekMode)?.icon ?? ""} /> + m.key === peekMode)?.icon ?? ""} className="text-[1rem]" /> = observer((props) => { {(peekMode === "side" || peekMode === "modal") && (
)} diff --git a/space/components/issues/peek-overview/issue-reaction.tsx b/space/components/issues/peek-overview/issue-reaction.tsx index 28090d36a..991125312 100644 --- a/space/components/issues/peek-overview/issue-reaction.tsx +++ b/space/components/issues/peek-overview/issue-reaction.tsx @@ -19,7 +19,6 @@ export const IssueReactions: React.FC = () => {
-
)} {canReact && ( diff --git a/space/components/issues/peek-overview/issue-vote-reactions.tsx b/space/components/issues/peek-overview/issue-vote-reactions.tsx index 073938daa..388d59072 100644 --- a/space/components/issues/peek-overview/issue-vote-reactions.tsx +++ b/space/components/issues/peek-overview/issue-vote-reactions.tsx @@ -97,7 +97,7 @@ export const IssueVotes: React.FC = observer((props) => { if (user) handleVote(e, 1); else router.push(`/?next_path=${pathName}?${queryParam}`); }} - className={`flex items-center justify-center gap-x-1 overflow-hidden rounded border px-2 focus:outline-none ${ + className={`flex items-center justify-center gap-x-1 overflow-hidden rounded border px-2 h-7 focus:outline-none ${ isUpVotedByUser ? "border-custom-primary-200 text-custom-primary-200" : "border-custom-border-300" }`} > @@ -131,7 +131,7 @@ export const IssueVotes: React.FC = observer((props) => { if (user) handleVote(e, -1); else router.push(`/?next_path=${pathName}?${queryParam}`); }} - className={`flex items-center justify-center gap-x-1 overflow-hidden rounded border px-2 focus:outline-none ${ + className={`flex items-center justify-center gap-x-1 h-7 overflow-hidden rounded border px-2 focus:outline-none ${ isDownVotedByUser ? "border-red-600 text-red-600" : "border-custom-border-300" }`} > diff --git a/web/components/account/oauth/github-button.tsx b/web/components/account/oauth/github-button.tsx index be9b59f24..6d274c125 100644 --- a/web/components/account/oauth/github-button.tsx +++ b/web/components/account/oauth/github-button.tsx @@ -25,8 +25,8 @@ export const GithubOAuthButton: FC = (props) => { return (