Style project settings on mobile (#134)
* Style project settings on mobile * Use auto-resize text area for display name * Remove unused import
This commit is contained in:
@@ -19,7 +19,7 @@ const CopiableCode = ({ code }: { code: string }) => {
|
|||||||
w="full"
|
w="full"
|
||||||
justifyContent="space-between"
|
justifyContent="space-between"
|
||||||
>
|
>
|
||||||
<Text fontFamily="inconsolata" fontWeight="bold" letterSpacing={0.5}>
|
<Text fontFamily="inconsolata" fontWeight="bold" letterSpacing={0.5} overflowX="auto">
|
||||||
{code}
|
{code}
|
||||||
</Text>
|
</Text>
|
||||||
<Tooltip closeOnClick={false} label={copied ? "Copied!" : "Copy to clipboard"}>
|
<Tooltip closeOnClick={false} label={copied ? "Copied!" : "Copy to clipboard"}>
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import {
|
|||||||
type TextProps,
|
type TextProps,
|
||||||
VStack,
|
VStack,
|
||||||
HStack,
|
HStack,
|
||||||
Input,
|
|
||||||
Button,
|
Button,
|
||||||
Divider,
|
Divider,
|
||||||
Icon,
|
Icon,
|
||||||
@@ -21,6 +20,7 @@ import { useHandledAsyncCallback, useSelectedProject } from "~/utils/hooks";
|
|||||||
import ProjectBreadcrumbContents from "~/components/nav/ProjectBreadcrumbContents";
|
import ProjectBreadcrumbContents from "~/components/nav/ProjectBreadcrumbContents";
|
||||||
import CopiableCode from "~/components/CopiableCode";
|
import CopiableCode from "~/components/CopiableCode";
|
||||||
import { DeleteProjectDialog } from "~/components/projectSettings/DeleteProjectDialog";
|
import { DeleteProjectDialog } from "~/components/projectSettings/DeleteProjectDialog";
|
||||||
|
import AutoResizeTextArea from "~/components/AutoResizeTextArea";
|
||||||
|
|
||||||
export default function Settings() {
|
export default function Settings() {
|
||||||
const utils = api.useContext();
|
const utils = api.useContext();
|
||||||
@@ -84,7 +84,7 @@ export default function Settings() {
|
|||||||
<Text fontWeight="bold" fontSize="xl">
|
<Text fontWeight="bold" fontSize="xl">
|
||||||
Display Name
|
Display Name
|
||||||
</Text>
|
</Text>
|
||||||
<Input
|
<AutoResizeTextArea
|
||||||
w="full"
|
w="full"
|
||||||
maxW={600}
|
maxW={600}
|
||||||
value={name}
|
value={name}
|
||||||
@@ -136,10 +136,13 @@ export default function Settings() {
|
|||||||
variant="outline"
|
variant="outline"
|
||||||
borderRadius={4}
|
borderRadius={4}
|
||||||
mt={2}
|
mt={2}
|
||||||
|
height="auto"
|
||||||
onClick={deleteProjectOpen.onOpen}
|
onClick={deleteProjectOpen.onOpen}
|
||||||
>
|
>
|
||||||
<Icon as={BsTrash} />
|
<Icon as={BsTrash} />
|
||||||
<Text>Delete {selectedProject?.name}</Text>
|
<Text overflowWrap="break-word" whiteSpace="normal" py={2}>
|
||||||
|
Delete {selectedProject?.name}
|
||||||
|
</Text>
|
||||||
</HStack>
|
</HStack>
|
||||||
</VStack>
|
</VStack>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user