Merge pull request 'fix header style and vlocation' (#39) from fix-header-style into main

Reviewed-on: https://codeberg.org/macchiato/pages/pulls/39
file-group-page
bat 3 years ago
commit b84b850d5a

@ -104,7 +104,7 @@ export class Header extends HTMLElement {
padding: 0 8px; padding: 0 8px;
} }
button.left-end { button.left-end {
padding-right: 12px; padding-left: 12px;
} }
button.right-end { button.right-end {
padding-right: 12px; padding-right: 12px;
@ -239,7 +239,7 @@ export class Header extends HTMLElement {
) )
localStorage.removeItem(this.path) localStorage.removeItem(this.path)
dialog.close() dialog.close()
vlocation.hash = newPath location.hash = newPath
}) })
bGroup.addCancel(this.text.cancel, () => { bGroup.addCancel(this.text.cancel, () => {
dialog.close() dialog.close()
@ -263,7 +263,7 @@ export class Header extends HTMLElement {
) )
bGroup.addPrimary(this.text.delete, () => { bGroup.addPrimary(this.text.delete, () => {
localStorage.removeItem(this.path) localStorage.removeItem(this.path)
vlocation.hash = '/' location.hash = '/'
dialog.close() dialog.close()
}) })
bGroup.addCancel(this.text.cancel, () => { bGroup.addCancel(this.text.cancel, () => {
@ -315,7 +315,7 @@ export class Header extends HTMLElement {
) )
bGroup.addPrimary(this.text.createPage, () => { bGroup.addPrimary(this.text.createPage, () => {
const newPath = this.encodePath(input.value) const newPath = this.encodePath(input.value)
vlocation.hash = newPath location.hash = newPath
dialog.close() dialog.close()
}) })
bGroup.addCancel(this.text.cancel, () => { bGroup.addCancel(this.text.cancel, () => {

@ -11,7 +11,7 @@ async function initCache() {
'/components/dialog.js', '/components/dialog.js',
'/forms/button-group.js', '/forms/button-group.js',
'/menu/dropdown.js', '/menu/dropdown.js',
]) ]) //1
} }
self.addEventListener("install", event => { self.addEventListener("install", event => {

Loading…
Cancel
Save