Skip to content

Commit

Permalink
fix: preserve scroll position on navbar back button
Browse files Browse the repository at this point in the history
Updates navbar back navigation to maintain scroll position when returning
to previous page. Prevents unwanted scroll reset and improves UX.

Add scroll position tracking
Modify back button handler
Implement position restoration. added linting to all files
  • Loading branch information
noobpiyush committed Nov 26, 2024
1 parent ec7c431 commit f0169ca
Show file tree
Hide file tree
Showing 29 changed files with 7,661 additions and 2,677 deletions.
6 changes: 2 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"plugins": [
"prettier-plugin-tailwindcss"
]
}
"plugins": ["prettier-plugin-tailwindcss"]
}
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ git clone https://github.com/code100x/cms.git
```bash
cd cms
```

# Instant Docker Setup

> [!NOTE]
Expand Down Expand Up @@ -51,15 +52,12 @@ docker run -d \
-p 5432:5432 \

postgres
```


```

1. Create a .env file:

- Copy `.env.example` and rename it to `.env`.


2. Install dependencies:

```bash
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ services:
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}' ]
test: ['CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}']
interval: 10s
timeout: 5s
retries: 5

volumes:
postgres-data:
postgres-data:
Loading

0 comments on commit f0169ca

Please sign in to comment.