mirror of
https://github.com/outline/outline.git
synced 2026-11-25 15:15:15 +03:00
fix: indent the note
This commit is contained in:
1 parent
d75af27267
commit
cf5e365c7a
1 file changed
+7
-3
@@ -2,6 +2,7 @@ import * as React from "react";
|
||||
import styled from "styled-components";
|
||||
import { LabelText } from "~/components/Input";
|
||||
import Text from "~/components/Text";
|
||||
import Flex from "./Flex";
|
||||
|
||||
type Props = React.HTMLAttributes<HTMLInputElement> & {
|
||||
width?: number;
|
||||
@@ -49,9 +50,12 @@ function Switch({
|
||||
<InlineLabelText>{label}</InlineLabelText>
|
||||
</Label>
|
||||
{note && (
|
||||
<Text type="secondary" size="small">
|
||||
{note}
|
||||
</Text>
|
||||
<Flex>
|
||||
<Input width={width} height={height} aria-hidden="true" />
|
||||
<Text type="secondary" size="small">
|
||||
{note}
|
||||
</Text>
|
||||
</Flex>
|
||||
)}
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user