Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/Navbars/MainNavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ function MainNavBar(props) {
/>
</NavLink>
</Grid>
</Tabs>
</Grid>
<div className={classes.grow} />
<Grid item>
</Tabs>
</Grid>
<Grid item xs />
<Grid item style={{ display: 'flex', alignItems: 'center' }}>
<Button
variant="contained"
color="primary"
Expand Down
4 changes: 3 additions & 1 deletion src/components/SubmitPost/SubmitPostForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ function SubmitPostForm({ options = [], user, setOpen }) {

const parseURLContent = async (url) => {
try {
const response = await fetch(`https://cors-anywhere.herokuapp.com/${url}`)
const proxyUrl = 'https://r.jina.ai/https://';
const targetUrl = url.replace(/^https?:\/\//, '')
const response = await fetch(`${proxyUrl}${targetUrl}`)
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`)
}
Expand Down
2 changes: 2 additions & 0 deletions src/views/PostsPage/PostPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import PostChatSend from '../../components/PostChat/PostChatSend'
const useStyles = makeStyles(() => ({
root: {
marginTop: 10,
minHeight: '100vh',
boxSizing: 'border-box',
},
emptyPost: {
marginTop: 100,
Expand Down