Skip to content

Commit

Permalink
List padding
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Apr 20, 2024
1 parent 9c10812 commit dd7a399
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/components/r4-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ export default class R4App extends LitElement {
super.connectedCallback()

this.listeners = new DatabaseListeners(this)
this.listeners.addEventListener('auth', async (event) => {
this.user = event.detail.user
this.listeners.addEventListener('auth', async ({detail}) => {
this.user = detail.user
this.refreshUserData()
this.refreshUserAccount()
if (event.detail === 'PASSWORD_RECOVERY') {
if (detail === 'PASSWORD_RECOVERY') {
this.passwordRecovery()
}
})
Expand Down Expand Up @@ -146,7 +146,9 @@ export default class R4App extends LitElement {

async refreshUserData() {
// Ensure it doesn't run multiple times in parallel.
if (this.refreshUserData.running) return
if (this.refreshUserData.running) {
return
}
this.refreshUserData.running = true

if (!this.user) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ r4-app * {
r4-app ul,
r4-app ol {
margin: 0;
padding: var(--s);
padding: 0 0 0 var(--s);
}
r4-app menu {
margin: 0;
Expand Down

0 comments on commit dd7a399

Please sign in to comment.