mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-15 17:25:04 -05:00
fix(frontend): agent favorites layout (#11733)
## Changes 🏗️ <img width="800" height="744" alt="Screenshot 2026-01-09 at 16 07 08" src="https://github.com/user-attachments/assets/034c97e2-18f3-441c-a13d-71f668ad672f" /> - Remove feature flag for agent favourites ( _keep it always visible_ ) - Fix the layout on the card so the ❤️ icon appears next to the `...` menu - Remove icons on toasts ## Checklist 📋 ### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Run the app locally and check the above <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Favorites now respond to the current search term and are available to all users (no feature-flag). * **UI/UX Improvements** * Redesigned Favorites section with simplified header, inline agent counts, updated spacing/dividers, and removal of skeleton placeholders. * Favorite button repositioned and visually simplified on agent cards. * Toast visuals simplified by removing per-type icons and adjusting close-button positioning. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -37,11 +37,3 @@ html body .toastDescription {
|
||||
font-size: 0.75rem !important;
|
||||
line-height: 1.25rem !important;
|
||||
}
|
||||
|
||||
/* Position close button on the right */
|
||||
/* stylelint-disable-next-line selector-pseudo-class-no-unknown */
|
||||
#root [data-sonner-toast] [data-close-button="true"] {
|
||||
left: unset !important;
|
||||
right: -18px !important;
|
||||
top: -3px !important;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
"use client";
|
||||
|
||||
import { CheckCircle, Info, Warning, XCircle } from "@phosphor-icons/react";
|
||||
import { Toaster as SonnerToaster } from "sonner";
|
||||
import styles from "./styles.module.css";
|
||||
|
||||
@@ -23,10 +22,10 @@ export function Toaster() {
|
||||
}}
|
||||
className="custom__toast"
|
||||
icons={{
|
||||
success: <CheckCircle className="h-4 w-4" color="#fff" weight="fill" />,
|
||||
error: <XCircle className="h-4 w-4" color="#fff" weight="fill" />,
|
||||
warning: <Warning className="h-4 w-4" color="#fff" weight="fill" />,
|
||||
info: <Info className="h-4 w-4" color="#fff" weight="fill" />,
|
||||
success: null,
|
||||
error: null,
|
||||
warning: null,
|
||||
info: null,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user