Skip to content

Commit

Permalink
Merge pull request #1880 from ResearchHub/small-fixes
Browse files Browse the repository at this point in the history
Move Social links up & Add "Support" on mobile view
  • Loading branch information
TylerDiorio authored Nov 11, 2024
2 parents 42aa8b7 + a5c7ee5 commit ef7dd8e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
17 changes: 12 additions & 5 deletions components/Home/sidebar/RootLeftSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function RootLeftSidebar({
overrideStyle={formattedFooterTxtItem}
target="_blank"
>
{"Support"}
{isMinimized ? "Support" : "Support"}
</ALink>
<ALink href="/about" overrideStyle={formattedFooterTxtItem}>
{"About"}
Expand Down Expand Up @@ -673,8 +673,6 @@ const styles = StyleSheet.create({
leftSidebarFooter: {
display: "flex",
flexDirection: "column",
justifyContent: "space-between",
flex: 1,
height: "100%",
},
leftSidebarFooterTxtItem: {
Expand Down Expand Up @@ -704,7 +702,16 @@ const styles = StyleSheet.create({
justifyContent: "flex-start",
width: "100%",
},
leftSidebarFooterItemsBottomRowMin: { display: "none" },
leftSidebarFooterItemsBottomRowMin: {
justifyContent: "center",
padding: "8px 0",
},
leftSidebarFooterTxtItemMobile: {
fontSize: 14,
fontWeight: 300,
margin: "0 auto 10px",
textAlign: "center",
},
referralProgramItem: {
// color: colors.ORANGE_DARK2(),
display: "flex",
Expand Down Expand Up @@ -739,7 +746,7 @@ const styles = StyleSheet.create({
},
},
footer: {
marginTop: "auto",
paddingBottom: 20,
},
arrowRight: {
color: "#aaa",
Expand Down
12 changes: 6 additions & 6 deletions components/Home/sidebar/RootLeftSidebarSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,26 +115,26 @@ function RootLeftSidebarSlider({
overrideStyle={styles.leftSidebarSliderFooterTxtItem}
>
{"Docs"}
</ALink>
</ALink>
<ALink
href="https://researchhub.foundation"
overrideStyle={styles.leftSidebarSliderFooterTxtItem}
>
Community
</ALink>
{/* <ALink
href="/leaderboard/users"
<ALink
href="https://airtable.com/appuhMJaf1kb3ic8e/pagYeh6cB9sgiTIgx/form"
overrideStyle={styles.leftSidebarSliderFooterTxtItem}
target="_blank"
>
Leaderboard
</ALink> */}
Support
</ALink>
</div>
<div className={css(styles.leftSidebarSliderFooterBottom)}>
<div
className={css(styles.leftSidebarSliderFooterItemsBottomRow)}
style={{ marginLeft: "-4px !important" }}
>

<ALink
href="https://x.com/researchhub"
overrideStyle={styles.leftSidebarSliderFooterIcon}
Expand Down

0 comments on commit ef7dd8e

Please sign in to comment.