From f2a4a5d58503d7571f06ba206f30ae102a0bde4c Mon Sep 17 00:00:00 2001 From: Ole Wieners Date: Mon, 25 Sep 2023 16:03:28 +0200 Subject: [PATCH] Change styling of input component --- frontend/src/routes/Video.tsx | 6 +-- frontend/src/routes/manage/Video/Details.tsx | 4 +- frontend/src/ui/Input.tsx | 46 ++++++++++++-------- frontend/src/util/index.ts | 10 +++-- 4 files changed, 41 insertions(+), 25 deletions(-) diff --git a/frontend/src/routes/Video.tsx b/frontend/src/routes/Video.tsx index fa3a698d9..f99c6307d 100644 --- a/frontend/src/routes/Video.tsx +++ b/frontend/src/routes/Video.tsx @@ -545,7 +545,7 @@ const ShareButton: React.FC<{ event: SyncedEvent }> = ({ event }) => { const { t } = useTranslation(); const [menuState, setMenuState] = useState("closed"); - const [timestamp, setTimestamp] = useState(0); + const [timestamp, setTimestamp] = useState(0); const [addLinkTimestamp, setAddLinkTimestamp] = useState(false); const [addEmbedTimestamp, setAddEmbedTimestamp] = useState(false); const isDark = useColorScheme().scheme === "dark"; @@ -663,7 +663,7 @@ const ShareButton: React.FC<{ event: SyncedEvent }> = ({ event }) => {
= ({ event }) => { label={t("video.embed.copy-embed-code-to-clipboard")} value={embedCode} multiline - css={{ fontSize: 14, width: 400, height: 75 }} + css={{ fontSize: 14, width: 400, height: 75, marginBottom: 6 }} /> = ({ event }) => { const DirectLink: React.FC = ({ event }) => { const { t } = useTranslation(); - const [timestamp, setTimestamp] = useState(0); + const [timestamp, setTimestamp] = useState(0); const [checkboxChecked, setCheckboxChecked] = useState(false); let url = new URL(`/!v/${event.id.slice(2)}`, document.baseURI); @@ -92,7 +92,7 @@ const DirectLink: React.FC = ({ event }) => { ({ @@ -65,9 +66,13 @@ export const InputWithCheckbox: React.FC = ( type="checkbox" checked={checkboxChecked} onChange={() => setCheckboxChecked(!checkboxChecked)} - css={{ margin: "0 4px" }} + css={{ marginRight: 8 }} /> -