mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 21:19:44 +00:00
chore: update dialog width in extension
This commit is contained in:
parent
34f8a97309
commit
bfb640f201
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "slash-extension",
|
"name": "slash-extension",
|
||||||
"displayName": "Slash",
|
"displayName": "Slash",
|
||||||
"version": "0.1.3",
|
"version": "0.1.4",
|
||||||
"description": "An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.",
|
"description": "An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "plasmo dev",
|
"dev": "plasmo dev",
|
||||||
|
@ -128,24 +128,24 @@ const CreateShortcutsButton = () => {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
||||||
<Modal container={() => document.body} open={showModal} onClose={() => setShowModal(false)}>
|
<Modal container={() => document.body} open={showModal} onClose={() => setShowModal(false)}>
|
||||||
<ModalDialog>
|
<ModalDialog className="w-3/4">
|
||||||
<div className="w-full flex flex-row justify-between items-center mb-2">
|
<div className="w-full flex flex-row justify-between items-center mb-2">
|
||||||
<span className="text-base font-medium">Create Shortcut</span>
|
<span className="text-base font-medium">Create Shortcut</span>
|
||||||
<Button size="sm" variant="plain" onClick={() => setShowModal(false)}>
|
<Button size="sm" variant="plain" onClick={() => setShowModal(false)}>
|
||||||
<Icon.X className="w-5 h-auto text-gray-600" />
|
<Icon.X className="w-5 h-auto text-gray-600" />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div className="overflow-x-hidden px-2 w-full flex flex-col justify-start items-center">
|
<div className="overflow-x-hidden w-full flex flex-col justify-start items-center">
|
||||||
<div className="w-full flex flex-row justify-start items-center mb-2">
|
<div className="w-full flex flex-row justify-start items-center mb-2">
|
||||||
<span className="block w-16 shrink-0">Name</span>
|
<span className="block w-12 mr-2 shrink-0">Name</span>
|
||||||
<Input className="grow" type="text" placeholder="Unique shortcut name" value={state.name} onChange={handleNameInputChange} />
|
<Input className="grow" type="text" placeholder="Unique shortcut name" value={state.name} onChange={handleNameInputChange} />
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full flex flex-row justify-start items-center mb-2">
|
<div className="w-full flex flex-row justify-start items-center mb-2">
|
||||||
<span className="block w-16 shrink-0">Title</span>
|
<span className="block w-12 mr-2 shrink-0">Title</span>
|
||||||
<Input className="grow" type="text" placeholder="Shortcut title" value={state.title} onChange={handleTitleInputChange} />
|
<Input className="grow" type="text" placeholder="Shortcut title" value={state.title} onChange={handleTitleInputChange} />
|
||||||
</div>
|
</div>
|
||||||
<div className="w-full flex flex-row justify-start items-center mb-2">
|
<div className="w-full flex flex-row justify-start items-center mb-2">
|
||||||
<span className="block w-16 shrink-0">Link</span>
|
<span className="block w-12 mr-2 shrink-0">Link</span>
|
||||||
<Input
|
<Input
|
||||||
className="grow"
|
className="grow"
|
||||||
type="text"
|
type="text"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user