fix: Gap after input prefix in web share settings
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user