Skip to content

Commit

Permalink
remove unnecessary usage of headerHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Jan 18, 2024
1 parent 99db853 commit a8be8f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commafeed-client/src/pages/app/FeedEntriesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function FeedEntriesPage(props: FeedEntriesPageProps) {
if (noSubscriptions) return <NoSubscriptionHelp />
return (
// add some room at the bottom of the page in order to be able to scroll the current entry at the top of the page when expanding
<Box mb={viewport.height - Constants.layout.headerHeight - 210}>
<Box mb={viewport.height * 0.75}>
<Group gap="xl">
{sourceWebsiteUrl && (
<a href={sourceWebsiteUrl} target="_blank" rel="noreferrer" className={classes.sourceWebsiteLink}>
Expand Down
2 changes: 1 addition & 1 deletion commafeed-client/src/pages/app/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default function Layout(props: LayoutProps) {
axis="x"
defaultPosition={{
x: sidebarWidth,
y: Constants.layout.headerHeight,
y: 0,
}}
bounds={{
left: 120,
Expand Down

0 comments on commit a8be8f2

Please sign in to comment.