Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
alangrainger committed Sep 7, 2023
1 parent 08fb6d7 commit e9b1968
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export const Placeholder = {
footer: 'TEMPLATE_FOOTER'
}

/**
* .reading-view-extra gives a custom width for the note text.
* .status-bar makes the status bar pinned to the right, rather than full-page.
*/
const html = `
<!DOCTYPE HTML>
<html>
Expand All @@ -31,6 +35,10 @@ const html = `
max-width: TEMPLATE_WIDTH;
margin: 0 auto;
}
.status-bar {
position: fixed !important;
}
</style>
</head>
<body>
Expand Down Expand Up @@ -109,7 +117,7 @@ const html = `
`

export const defaultFooter = `
<div id="footer" class="status-bar">
<div class="status-bar">
<div class="status-bar-item">
<span class="status-bar-item-segment">Published with <a
href="https://obsidianshare.com/" target="_blank">Share Note</a> for Obsidian</span>
Expand Down

0 comments on commit e9b1968

Please sign in to comment.