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
4 changes: 2 additions & 2 deletions frontend/src/features/folders/components/FolderCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const FolderCard: FC<FolderCardProps> = ({
)}

{/* Actions (show on hover) */}
<div className="mt-2 flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
<div className="mt-2 flex items-center gap-2 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-opacity">
{onRename && (
<button
onClick={(e) => { e.stopPropagation(); onRename(path); }}
Expand Down Expand Up @@ -121,7 +121,7 @@ export const FolderCard: FC<FolderCardProps> = ({
</div>

{/* Actions */}
<div className="flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
<div className="flex items-center gap-2 opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-opacity">
{onRename && (
<button
onClick={(e) => { e.stopPropagation(); onRename(path); }}
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ body {
-moz-osx-font-smoothing: grayscale;
}

/* Disable GPU acceleration for animations to prevent rendering artifacts */
* {
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}

.space-grotesk-regular {
font-family: "Space Grotesk", sans-serif;
font-optical-sizing: auto;
Expand Down
22 changes: 11 additions & 11 deletions frontend/src/pages/Trash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export const Trash = () => {
};

return (
<div className="min-h-screen bg-[#0D1117] p-6 text-slate-200">
<div className="min-h-screen bg-[#0D1117] p-4 sm:p-6 text-slate-200">
{/* Page header */}
<header className="mb-6 flex items-center justify-between">
<header className="mb-6 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4">
<div className="flex items-center gap-3">
<button
onClick={() => {
Expand All @@ -94,15 +94,15 @@ export const Trash = () => {
>
<ArrowLeft className="w-5 h-5" />
</button>
<h1 className="text-2xl font-bold flex items-center gap-2">
<h1 className="text-xl sm:text-2xl font-bold flex items-center gap-2">
<Trash2 className="w-6 h-6" />
Trash
</h1>
</div>
{trashedFiles.length > 0 && (
<button
onClick={() => setShowConfirm(true)}
className="px-3 py-1 rounded bg-red-500/20 text-red-400 hover:bg-red-500/30 transition-colors text-sm"
className="px-3 py-1 rounded bg-red-500/20 text-red-400 hover:bg-red-500/30 transition-colors text-sm w-full sm:w-auto"
>
Empty Trash
</button>
Expand Down Expand Up @@ -152,30 +152,30 @@ export const Trash = () => {
)}

{/* Simple toolbar */}
<div className="flex items-center gap-3 mb-4">
<div className="flex flex-col sm:flex-row sm:items-center gap-3 mb-4">
<input
placeholder="Search trash"
value={pattern}
onChange={(e) => setPattern(e.target.value)}
className="bg-[#0B1220] border border-[#22262b] px-3 py-1 rounded text-slate-100 w-64"
className="bg-[#0B1220] border border-[#22262b] px-3 py-1 rounded text-slate-100 flex-1 sm:w-64"
/>
<button
onClick={() => fetchTrashedFiles()}
className="px-3 py-1 rounded bg-[#0f1724] text-slate-400"
className="px-3 py-1 rounded bg-[#0f1724] text-slate-400 shrink-0"
>
Refresh
</button>
<div className="ml-auto flex items-center gap-2">
<div className="flex items-center gap-2 flex-wrap sm:ml-auto">
<span className="text-sm text-slate-400">{filteredFiles.length} files</span>
<button
onClick={() => setView('list')}
className={`p-2 rounded ${view === 'list' ? 'bg-[#111827]' : 'bg-transparent'}`}
className={`p-2 rounded text-sm shrink-0 ${view === 'list' ? 'bg-[#111827]' : 'bg-transparent'}`}
>
List
</button>
<button
onClick={() => setView('grid')}
className={`p-2 rounded ${view === 'grid' ? 'bg-[#111827]' : 'bg-transparent'}`}
className={`p-2 rounded text-sm shrink-0 ${view === 'grid' ? 'bg-[#111827]' : 'bg-transparent'}`}
>
Grid
</button>
Expand Down Expand Up @@ -223,4 +223,4 @@ export const Trash = () => {
);
};

export default Trash;
export default Trash;