feat: stream cards improvements

- edit toggle
- reorder with drag and drop
- delete button inside edit modal
- add ability to clear image from card
- make card textarea taller and avoid horizontal resize
This commit is contained in:
Alejandro Gomez
2023-07-28 08:09:55 +02:00
parent 3e2336129c
commit 4e4ea9efa6
12 changed files with 419 additions and 78 deletions

View File

@ -27,7 +27,7 @@ export function LayoutPage() {
<Menu
menuClassName="ctx-menu"
menuButton={
<div>
<div className="profile-menu">
<Profile
avatarClassname="mb-squared"
pubkey={login.pubkey}
@ -82,7 +82,11 @@ export function LayoutPage() {
}
return (
<div className={`page${location.pathname.startsWith("/naddr1") ? " stream" : ""}`}>
<div
className={`page${
location.pathname.startsWith("/naddr1") ? " stream" : ""
}`}
>
<Helmet>
<title>Home - zap.stream</title>
</Helmet>
@ -92,9 +96,7 @@ export function LayoutPage() {
<input className="search-input" type="text" placeholder="Search" />
<Icon name="search" size={15} />
</div>
<div className="f-grow">
{/* Future menu items go here */}
</div>
<div className="f-grow">{/* Future menu items go here */}</div>
<div className="header-right">
{loggedIn()}
{loggedOut()}