Skip to content

Commit

Permalink
feat: update outline of email details when the user is editing
Browse files Browse the repository at this point in the history
  • Loading branch information
ajyey committed Jun 24, 2023
1 parent cd9f36f commit 8225fdc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/pages/popup/components/home/detail/EmailAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ function EmailAddress({
emailAddress: string | null;
isEditing: boolean;
}) {
const containerStyle = `border border-big-stone rounded-b-none rounded rounded-tl-lg rounded-tr-lg hover:bg-french-blue/[0.4] ${
isEditing ? 'bg-big-stone' : 'bg-astronaut'
const containerStyle = `border rounded-b-none rounded rounded-tl-lg rounded-tr-lg hover:bg-french-blue/[0.4] ${
isEditing
? 'bg-big-stone border-iron/[0.5]'
: 'border-big-stone bg-astronaut'
}`;
return (
<div className={containerStyle}>
Expand Down
6 changes: 4 additions & 2 deletions src/pages/popup/components/home/detail/EmailDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ function EmailDescription({
? 'text-white'
: 'text-gray-400';
// Use different styles based on whether we're editing or not
const containerStyle = `border border-t-0 border-big-stone ${
isEditing ? 'bg-big-stone' : 'bg-astronaut hover:bg-french-blue/[0.4]'
const containerStyle = `border border-t-0 ${
isEditing
? 'bg-big-stone border-iron/[0.5]'
: 'border-big-stone bg-astronaut hover:bg-french-blue/[0.4]'
}`;
return (
<div className={containerStyle}>
Expand Down
6 changes: 4 additions & 2 deletions src/pages/popup/components/home/detail/EmailDomain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ function EmailDomain({
const handleDomainChange = (e: React.ChangeEvent<HTMLInputElement>) => {
setEditedDomain(e.target.value);
};
const containerStyle = `border border-big-stone border-t-0 ${
isEditing ? 'bg-big-stone' : 'bg-astronaut hover:bg-french-blue/[0.4]'
const containerStyle = `border border-t-0 ${
isEditing
? 'bg-big-stone border-iron/[0.5]'
: 'border-big-stone bg-astronaut hover:bg-french-blue/[0.4]'
}`;
return (
<div className={containerStyle}>
Expand Down
6 changes: 4 additions & 2 deletions src/pages/popup/components/home/detail/EmailId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ function EmailId({
emailId: string | null;
isEditing: boolean;
}) {
const containerStyle = `bg-astronaut border border-t-0 rounded-b-lg border-big-stone hover:bg-french-blue/[0.4] ${
isEditing ? 'bg-big-stone' : 'bg-astronaut hover:bg-french-blue/[0.4]'
const containerStyle = `border border-t-0 rounded-b-lg hover:bg-french-blue/[0.4] ${
isEditing
? 'bg-big-stone border-iron/[0.5]'
: 'border-big-stone bg-astronaut hover:bg-french-blue/[0.4]'
}`;
return (
<div className={containerStyle}>
Expand Down

0 comments on commit 8225fdc

Please sign in to comment.