a tool for shared writing and social publishing

little tweak to clear the link inputs on confirm or cancel, and tweak placeholder text

+4 -4
+1 -1
app/test/TextToolbar.tsx
··· 176 176 <Separator /> 177 177 <input 178 178 className="w-full grow bg-transparent border-none outline-none " 179 - placeholder="www.leafl.et" 179 + placeholder="www.leaflet.pub" 180 180 value={linkValue} 181 181 onChange={(e) => setLinkValue(e.target.value)} 182 182 />
+3 -3
components/TextBlock/index.tsx
··· 422 422 <input 423 423 id="block-link-input" 424 424 className="w-full grow border-none outline-none " 425 - placeholder="www.leafl.et" 425 + placeholder="www.leaflet.pub" 426 426 value={linkValue} 427 427 onChange={(e) => setLinkValue(e.target.value)} 428 428 onBlur={() => setLinkOpen(false)} 429 429 onKeyDown={(e) => { 430 430 if (e.key === "Enter") { 431 - setLinkValue(linkValue); 432 431 setLinkOpen(false); 432 + setLinkValue(""); 433 433 } 434 434 }} 435 435 /> ··· 437 437 <button 438 438 className="hover:text-accent" 439 439 onClick={() => { 440 - setLinkValue(linkValue); 441 440 setLinkOpen(false); 441 + setLinkValue(""); 442 442 }} 443 443 > 444 444 <CheckTiny />