Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow to delete attachment #774

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gianpaj
Copy link

@gianpaj gianpaj commented Feb 7, 2025

  • I'm also limiting the file input to accept PNG or JPEG, as that's what the /upload route supports.
upload-and-delete-attachment-opt.mp4

The only reason why I'm opening it as a draft PR is that I can't figure out why negative classes are not working in Tailwind...
-right-2 -top-2
in the Delete icon button

        {onDelete && (
          <Button
            variant="outline"
            onClick={() => onDelete(attachment)}
            className="absolute -right-2 -top-2 rounded-full bg-background border p-0.5 hover:bg-muted size-6"
            //                  ^ why not working sir??
          >
            <X size={24} />
          </Button>
        )}

Copy link

vercel bot commented Feb 7, 2025

@gianpaj is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant