Skip to content

Commit

Permalink
Default scale for homepage 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
VVoruganti committed Mar 20, 2024
1 parent e9ce231 commit 377308f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quartz/components/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ const defaultOptions: GraphOptions = {

export default ((opts?: GraphOptions) => {
const Graph: QuartzComponent = ({ fileData, displayClass, cfg }: QuartzComponentProps) => {
let optsCopy = { localGraph: { depth: 1 } }
let optsCopy = { localGraph: { scale: 1.1, depth: 1 } }
if (fileData.slug === 'index') {
optsCopy.localGraph.depth = -1
optsCopy.localGraph.scale = 0.7
}
const localGraph = { ...defaultOptions.localGraph, ...optsCopy.localGraph }
const globalGraph = { ...defaultOptions.globalGraph, ...opts?.globalGraph }
Expand Down

0 comments on commit 377308f

Please sign in to comment.