Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/mail/app/(auth)/login/login-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ function LoginClientContent({ providers, isProd }: LoginClientProps) {
</button>

<div
className={`overflow-hidden transition-all duration-300 ease-in-out ${expandedProviders[provider.id] ? 'max-h-[500px] opacity-100' : 'max-h-0 opacity-0'}`}
className={`overflow-hidden duration-300 ease-in-out ${expandedProviders[provider.id] ? 'max-h-[500px] opacity-100' : 'max-h-0 opacity-0'}`}
>
<div className="bg-black/3 p-4 font-mono text-sm dark:bg-white/3">
<div className="bg-black/3 dark:bg-white/3 p-4 font-mono text-sm">
{provider.envVarStatus.map((envVar) => (
<div
key={envVar.name}
className={`mb-3 flex items-start transition-all duration-300 ease-in-out last:mb-0 ${expandedProviders[provider.id] ? 'translate-y-0 opacity-100' : 'translate-y-2 opacity-0'}`}
className={`mb-3 flex items-start duration-300 ease-in-out last:mb-0 ${expandedProviders[provider.id] ? 'translate-y-0 opacity-100' : 'translate-y-2 opacity-0'}`}
style={{
transitionDelay: expandedProviders[provider.id]
? `${provider.envVarStatus.indexOf(envVar) * 50}ms`
Expand Down
14 changes: 7 additions & 7 deletions apps/mail/app/(full-width)/contributors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ export default function OpenPage() {
</div>

{/* Project Stats */}
<div className="mb-8 overflow-hidden rounded-xl border bg-linear-to-b from-white/50 to-white/10 p-6 backdrop-blur-sm dark:border-neutral-700 dark:from-neutral-900/50 dark:to-neutral-900/30">
<div className="bg-linear-to-b mb-8 overflow-hidden rounded-xl border from-white/50 to-white/10 p-6 backdrop-blur-sm dark:border-neutral-700 dark:from-neutral-900/50 dark:to-neutral-900/30">
<div className="flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center">
<div className="space-y-1">
<div className="flex items-center gap-2">
Expand Down Expand Up @@ -484,7 +484,7 @@ export default function OpenPage() {

<div className="mt-6 grid gap-4 lg:grid-cols-3">
{/* Repository Growth */}
<Card className="col-span-full border-neutral-100 bg-white/50 p-4 transition-all hover:bg-white/60 lg:col-span-2 dark:border-neutral-800 dark:bg-neutral-900/50 dark:hover:bg-neutral-900/60">
<Card className="col-span-full border-neutral-100 bg-white/50 p-4 hover:bg-white/60 lg:col-span-2 dark:border-neutral-800 dark:bg-neutral-900/50 dark:hover:bg-neutral-900/60">
<h3 className="mb-4 text-sm font-medium text-neutral-600 dark:text-neutral-400">
Repository Growth
</h3>
Expand Down Expand Up @@ -576,7 +576,7 @@ export default function OpenPage() {
</Card>

{/* Activity Chart */}
<Card className="col-span-full border-neutral-200 bg-white/50 p-4 transition-all hover:bg-white/60 lg:col-span-1 dark:border-neutral-800 dark:bg-neutral-900/50 dark:hover:bg-neutral-900/60">
<Card className="col-span-full border-neutral-200 bg-white/50 p-4 hover:bg-white/60 lg:col-span-1 dark:border-neutral-800 dark:bg-neutral-900/50 dark:hover:bg-neutral-900/60">
<h3 className="mb-4 text-sm font-medium text-neutral-600 dark:text-neutral-400">
Recent Activity
</h3>
Expand Down Expand Up @@ -672,7 +672,7 @@ export default function OpenPage() {
{filteredCoreTeam?.map((member, index) => (
<div
key={member.login}
className="group relative flex items-center gap-4 rounded-xl border bg-white/50 p-4 transition-all hover:-translate-y-1 hover:bg-white hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900/50 dark:hover:bg-neutral-900 dark:hover:shadow-neutral-900/50"
className="group relative flex items-center gap-4 rounded-xl border bg-white/50 p-4 hover:-translate-y-1 hover:bg-white hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900/50 dark:hover:bg-neutral-900 dark:hover:shadow-neutral-900/50"
style={{
animationDelay: `${index * 100}ms`,
animation: 'fadeInUp 0.5s ease-out forwards',
Expand Down Expand Up @@ -783,7 +783,7 @@ export default function OpenPage() {
key={contributor.login}
href={contributor.html_url}
target="_blank"
className="group relative flex flex-col items-center rounded-xl border bg-white/50 p-4 transition-all hover:-translate-y-1 hover:bg-white hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900/50 dark:hover:bg-neutral-900 dark:hover:shadow-neutral-900/50"
className="group relative flex flex-col items-center rounded-xl border bg-white/50 p-4 hover:-translate-y-1 hover:bg-white hover:shadow-lg dark:border-neutral-800 dark:bg-neutral-900/50 dark:hover:bg-neutral-900 dark:hover:shadow-neutral-900/50"
style={{
animationDelay: `${index * 50}ms`,
animation: 'fadeInUp 0.5s ease-out forwards',
Expand Down Expand Up @@ -908,7 +908,7 @@ export default function OpenPage() {
</div>

<div className="mb-8">
<div className="relative overflow-hidden rounded-xl border bg-linear-to-br from-neutral-50 to-white shadow-sm dark:border-neutral-800 dark:from-neutral-900/80 dark:to-neutral-900/30">
<div className="bg-linear-to-br relative overflow-hidden rounded-xl border from-neutral-50 to-white shadow-sm dark:border-neutral-800 dark:from-neutral-900/80 dark:to-neutral-900/30">
<div className="absolute inset-0 opacity-20 dark:opacity-20"></div>

<div className="relative p-6">
Expand All @@ -928,7 +928,7 @@ export default function OpenPage() {
<div className="mt-5 flex flex-wrap gap-3">
<Button
asChild
className="relative overflow-hidden bg-neutral-900 text-white transition-all hover:bg-neutral-800 dark:bg-white dark:text-neutral-900 dark:hover:bg-neutral-100"
className="relative overflow-hidden bg-neutral-900 text-white hover:bg-neutral-800 dark:bg-white dark:text-neutral-900 dark:hover:bg-neutral-100"
>
<a
href={`https://github.com/${REPOSITORY}/blob/main/.github/CONTRIBUTING.md`}
Expand Down
2 changes: 1 addition & 1 deletion apps/mail/app/(full-width)/privacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function PrivacyPolicy() {
</h2>
<button
onClick={() => handleCopyLink(sectionId)}
className="text-gray-400 transition-all hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80"
className="text-gray-400 hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80"
aria-label={`Copy link to ${section.title} section`}
>
<Link2
Expand Down
6 changes: 2 additions & 4 deletions apps/mail/app/(full-width)/terms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ import { Button } from '@/components/ui/button';
import Footer from '@/components/home/footer';
import { createSectionId } from '@/lib/utils';


import React from 'react';

const LAST_UPDATED = 'February 13, 2025';

export default function TermsOfService() {
const { copiedValue: copiedSection, copyToClipboard } = useCopyToClipboard();


const handleCopyLink = (sectionId: string) => {
const url = `${window.location.origin}${window.location.pathname}#${sectionId}`;
Expand All @@ -25,7 +23,7 @@ export default function TermsOfService() {
<Navigation />
<div className="relative z-10 flex grow flex-col">
{/* Back Button */}
<div className="absolute right-4 top-6 md:left-8 md:top-8 md:right-auto">
<div className="absolute right-4 top-6 md:left-8 md:right-auto md:top-8">
<a href="/">
<Button
variant="ghost"
Expand Down Expand Up @@ -64,7 +62,7 @@ export default function TermsOfService() {
</h2>
<button
onClick={() => handleCopyLink(sectionId)}
className="text-gray-400 transition-all hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80"
className="text-gray-400 hover:text-gray-700 dark:text-white/60 dark:hover:text-white/80"
aria-label={`Copy link to ${section.title} section`}
>
<Link2
Expand Down
2 changes: 1 addition & 1 deletion apps/mail/app/(routes)/developer/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function DeveloperPage() {

<div className="grid grid-cols-1 gap-4 pb-4 sm:gap-6 md:grid-cols-2 lg:grid-cols-3">
{developerResources.map((resource) => (
<Card key={resource.title} className="transition-all hover:shadow-md">
<Card key={resource.title} className="hover:shadow-md">
<CardHeader className="sm:p-6">
<div className="flex items-start gap-4 sm:items-center">
<div className={`shrink-0 rounded-lg ${resource.bgColor} p-2.5`}>
Expand Down
6 changes: 3 additions & 3 deletions apps/mail/app/(routes)/settings/connections/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default function ConnectionsPage() {
<Button
variant="ghost"
size="icon"
className="text-muted-foreground hover:text-primary ml-4 shrink-0"
className="text-muted-foreground hover:text-primary ml-4 shrink-0"
disabled={data.connections.length === 1}
>
<Trash className="h-4 w-4" />
Expand Down Expand Up @@ -205,7 +205,7 @@ export default function ConnectionsPage() {
<AddConnectionDialog>
<Button
variant="outline"
className="group relative w-9 overflow-hidden transition-all duration-200 hover:w-full sm:hover:w-[32.5%]"
className="group relative w-9 overflow-hidden duration-200 hover:w-full sm:hover:w-[32.5%]"
>
<Plus className="absolute left-2 h-4 w-4" />
<span className="whitespace-nowrap pl-7 opacity-0 transition-opacity duration-200 group-hover:opacity-100">
Expand All @@ -217,7 +217,7 @@ export default function ConnectionsPage() {
<Button
onClick={() => setPricingDialog('true')}
variant="outline"
className="group relative w-9 overflow-hidden transition-all duration-200 hover:w-full sm:hover:w-[32.5%]"
className="group relative w-9 overflow-hidden duration-200 hover:w-full sm:hover:w-[32.5%]"
>
<Plus className="absolute left-2 h-4 w-4" />
<span className="whitespace-nowrap pl-7 opacity-0 transition-opacity duration-200 group-hover:opacity-100">
Expand Down
2 changes: 1 addition & 1 deletion apps/mail/components/create/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export default function Editor({
>
{/* Make sure the command palette doesn't cause a refresh */}
<EditorCommand
className="border-muted bg-background z-50 h-auto max-h-[330px] overflow-y-auto rounded-md border px-1 py-2 shadow-md transition-all"
className="border-muted bg-background z-50 h-auto max-h-[330px] overflow-y-auto rounded-md border px-1 py-2 shadow-md"
onKeyDown={(e) => {
// Prevent form submission on any key that might trigger it
if (e.key === 'Enter' || e.key === ' ' || e.key === 'Spacebar') {
Expand Down
2 changes: 1 addition & 1 deletion apps/mail/components/labels/label-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function LabelDialog({
<button
key={color.backgroundColor}
type="button"
className={`h-10 w-10 rounded-[4px] border-[0.5px] border-white/10 transition-all ${
className={`h-10 w-10 rounded-[4px] border-[0.5px] border-white/10 ${
formColor?.backgroundColor.toString() === color.backgroundColor &&
formColor.textColor.toString() === color.textColor
? 'scale-110 ring-2 ring-blue-500 ring-offset-1'
Expand Down
14 changes: 3 additions & 11 deletions apps/mail/components/mail/mail-display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1313,10 +1313,7 @@ const MailDisplay = ({ emailData, index, totalEmails, demo, threadAttachments }:
</>
)}
</div>
<div
className="flex cursor-pointer flex-col pb-2 transition-all duration-200"
onClick={toggleCollapse}
>
<div className="flex cursor-pointer flex-col pb-2 duration-200" onClick={toggleCollapse}>
<div className="mt-3 flex w-full items-start justify-between gap-4 px-4">
<div className="flex w-full justify-center gap-4">
<BimiAvatar
Expand Down Expand Up @@ -1635,16 +1632,11 @@ const MailDisplay = ({ emailData, index, totalEmails, demo, threadAttachments }:
</div>
</div>

<div
className={cn(
'h-0 overflow-hidden transition-all duration-200',
!isCollapsed && 'h-px',
)}
></div>
<div className={cn('h-0 overflow-hidden duration-200', !isCollapsed && 'h-px')}></div>

<div
className={cn(
'grid overflow-hidden transition-all duration-200',
'grid overflow-hidden duration-200',
isCollapsed ? 'grid-rows-[0fr]' : 'grid-rows-[1fr]',
)}
onClick={(e) => e.stopPropagation()}
Expand Down
6 changes: 3 additions & 3 deletions apps/mail/components/mail/mail-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const Thread = memo(
data-thread-id={idToUse}
key={idToUse}
className={cn(
'hover:bg-offsetLight dark:hover:bg-primary/5 group relative mx-1 flex cursor-pointer flex-col items-start rounded-lg py-2 text-left text-sm transition-all hover:opacity-100',
'hover:bg-offsetLight dark:hover:bg-primary/5 group relative mx-1 flex cursor-pointer flex-col items-start rounded-lg py-2 text-left text-sm hover:opacity-100',
(isMailSelected || isMailBulkSelected || isKeyboardFocused) &&
'border-border bg-primary/5 opacity-100',
isKeyboardFocused && 'ring-primary/50',
Expand Down Expand Up @@ -572,7 +572,7 @@ const Draft = memo(({ message }: { message: { id: string } }) => {
<div
key={message.id}
className={cn(
'group relative mx-[8px] flex cursor-pointer flex-col items-start overflow-clip rounded-[10px] border-transparent py-3 text-left text-sm transition-all',
'group relative mx-[8px] flex cursor-pointer flex-col items-start overflow-clip rounded-[10px] border-transparent py-3 text-left text-sm',
)}
>
<div
Expand Down Expand Up @@ -604,7 +604,7 @@ const Draft = memo(({ message }: { message: { id: string } }) => {
<div
key={message.id}
className={cn(
'hover:bg-offsetLight dark:hover:bg-primary/5 group relative mx-[8px] flex cursor-pointer flex-col items-start overflow-clip rounded-[10px] border-transparent py-3 text-left text-sm transition-all hover:opacity-100',
'hover:bg-offsetLight dark:hover:bg-primary/5 group relative mx-[8px] flex cursor-pointer flex-col items-start overflow-clip rounded-[10px] border-transparent py-3 text-left text-sm hover:opacity-100',
)}
>
<div
Expand Down
4 changes: 2 additions & 2 deletions apps/mail/components/mail/note-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export function NotesPanel({ threadId }: NotesPanelProps) {

{isOpen && (
<div
className="animate-in fade-in-20 zoom-in-95 dark:bg-panelDark fixed top-20 z-50 h-[calc(100dvh-5rem)] max-h-[calc(100dvh-5rem)] w-full max-w-screen overflow-hidden rounded-t-lg border border-t bg-[#FAFAFA] shadow-lg duration-100 sm:absolute sm:right-0 sm:top-full sm:mt-2 sm:h-auto sm:max-h-[80vh] sm:w-[350px] sm:max-w-[90vw] sm:rounded-xl sm:border lg:left-[-200px] xl:left-[-300px] dark:border-[#252525]"
className="animate-in fade-in-20 zoom-in-95 dark:bg-panelDark max-w-screen fixed top-20 z-50 h-[calc(100dvh-5rem)] max-h-[calc(100dvh-5rem)] w-full overflow-hidden rounded-t-lg border border-t bg-[#FAFAFA] shadow-lg duration-100 sm:absolute sm:right-0 sm:top-full sm:mt-2 sm:h-auto sm:max-h-[80vh] sm:w-[350px] sm:max-w-[90vw] sm:rounded-xl sm:border lg:left-[-200px] xl:left-[-300px] dark:border-[#252525]"
onClick={handlePanelClick}
>
<div className="sticky top-0 z-10 flex items-center justify-between border-b border-[#E7E7E7] p-3 dark:border-[#252525]">
Expand Down Expand Up @@ -706,7 +706,7 @@ export function NotesPanel({ threadId }: NotesPanelProps) {
<button
onClick={() => setSelectedColor(color.value)}
className={cn(
'h-5 w-5 rounded-full transition-all',
'h-5 w-5 rounded-full',
color.value === 'default' ? 'bg-background border' : '',
color.value === 'red' ? 'bg-red-500' : '',
color.value === 'orange' ? 'bg-orange-500' : '',
Expand Down
Loading