feat: add AI settings controls
This commit is contained in:
@@ -27,6 +27,9 @@ interface EventCardProps {
|
||||
onDelete: (eventId: string) => void;
|
||||
}
|
||||
|
||||
export const EVENT_CARD_SURFACE_CLASSES =
|
||||
"glass-card group cursor-pointer p-4 transition-[background-color,border-color,transform] duration-150 hover:-translate-y-0.5 hover:bg-accent/30 hover:border-primary/15";
|
||||
|
||||
export const EventCard = ({ event, onEdit, onDelete }: EventCardProps) => {
|
||||
const handleEdit = () => {
|
||||
onEdit({
|
||||
@@ -50,10 +53,12 @@ export const EventCard = ({ event, onEdit, onDelete }: EventCardProps) => {
|
||||
exit={{ opacity: 0, y: -8, transition: { duration: 0.15 } }}
|
||||
transition={{ duration: 0.2 }}
|
||||
>
|
||||
<div className="glass-card group cursor-pointer p-4 transition-colors duration-150 hover:bg-accent/50">
|
||||
<div className={EVENT_CARD_SURFACE_CLASSES}>
|
||||
<div className="flex items-start gap-3">
|
||||
<div className="min-w-0 flex-1 space-y-1.5">
|
||||
<h3 className="truncate text-sm font-medium leading-snug">{event.title}</h3>
|
||||
<h3 className="truncate text-sm font-medium leading-snug">
|
||||
{event.title}
|
||||
</h3>
|
||||
|
||||
{event.description && (
|
||||
<p className="line-clamp-2 text-xs leading-relaxed text-muted-foreground">
|
||||
|
||||
Reference in New Issue
Block a user