|
9 | 9 | ModalBody,
|
10 | 10 | ModalHeader,
|
11 | 11 | UnorderedList,
|
12 |
| - useBreakpointValue, |
13 | 12 | VStack,
|
14 | 13 | } from "@chakra-ui/react"
|
15 | 14 |
|
@@ -60,8 +59,6 @@ const FileContributors = ({
|
60 | 59 | const [isModalOpen, setModalOpen] = useState(false)
|
61 | 60 | const { locale } = useRouter()
|
62 | 61 |
|
63 |
| - const isDesktop = useBreakpointValue({ base: false, md: true }) |
64 |
| - |
65 | 62 | const lastContributor: FileContributor = contributors.length
|
66 | 63 | ? contributors[0]
|
67 | 64 | : ({
|
@@ -99,28 +96,22 @@ const FileContributors = ({
|
99 | 96 | p={{ base: 0, md: 2 }}
|
100 | 97 | {...props}
|
101 | 98 | >
|
102 |
| - <Flex me={4} alignItems="center" flex="1"> |
103 |
| - {isDesktop && ( |
104 |
| - <> |
105 |
| - <Avatar |
106 |
| - height="40px" |
107 |
| - width="40px" |
108 |
| - src={lastContributor.avatar_url} |
109 |
| - name={lastContributor.login} |
110 |
| - me={2} |
111 |
| - /> |
112 |
| - |
113 |
| - <Text m={0} color="text200"> |
114 |
| - <Translation id="last-edit" />:{" "} |
115 |
| - <InlineLink |
116 |
| - href={"https://github.com/" + lastContributor.login} |
117 |
| - > |
118 |
| - @{lastContributor.login} |
119 |
| - </InlineLink> |
120 |
| - , {getLocaleTimestamp(locale as Lang, lastEdit)} |
121 |
| - </Text> |
122 |
| - </> |
123 |
| - )} |
| 99 | + <Flex me={4} alignItems="center" flex="1" hideBelow="md"> |
| 100 | + <Avatar |
| 101 | + height="40px" |
| 102 | + width="40px" |
| 103 | + src={lastContributor.avatar_url} |
| 104 | + name={lastContributor.login} |
| 105 | + me={2} |
| 106 | + /> |
| 107 | + |
| 108 | + <Text m={0} color="text200"> |
| 109 | + <Translation id="last-edit" />:{" "} |
| 110 | + <InlineLink href={"https://github.com/" + lastContributor.login}> |
| 111 | + @{lastContributor.login} |
| 112 | + </InlineLink> |
| 113 | + , {getLocaleTimestamp(locale as Lang, lastEdit)} |
| 114 | + </Text> |
124 | 115 | </Flex>
|
125 | 116 |
|
126 | 117 | <VStack align="stretch" justifyContent="space-between" spacing={2}>
|
|
0 commit comments