fix: Gap after input prefix in web share settings

This commit is contained in:
Tom Moor
2024-06-06 23:38:18 -04:00
parent 2002c20bd3
commit 8762adacbb

View File

@@ -172,11 +172,9 @@ function PublicAccess({ document, share, sharedParent }: Props) {
error={validationError} error={validationError}
defaultValue={urlId} defaultValue={urlId}
prefix={ prefix={
<DomainPrefix <DomainPrefix onClick={() => inputRef.current?.focus()}>
readOnly {env.URL.replace(/https?:\/\//, "") + "/s/"}
onClick={() => inputRef.current?.focus()} </DomainPrefix>
value={env.URL.replace(/https?:\/\//, "") + "/s/"}
/>
} }
> >
{copyButton} {copyButton}
@@ -208,9 +206,9 @@ const Wrapper = styled.div`
margin-bottom: 8px; margin-bottom: 8px;
`; `;
const DomainPrefix = styled(NativeInput)` const DomainPrefix = styled.span`
padding: 0 2px 0 8px;
flex: 0 1 auto; flex: 0 1 auto;
padding-right: 0 !important;
cursor: text; cursor: text;
color: ${s("placeholder")}; color: ${s("placeholder")};
user-select: none; user-select: none;