This code runs https://rdrama.net and https://watchpeopledie.tv
mummified-corroding-granny
ea47902127
Small lil PR to reduce/minimize overscroll (aka scroll chaining) when scrolling to the end of scrollable modals. Also relevant to mobile Primary targets: - GIFs scrollable tabs body - EMOJI scrollable tabs body - AWARDS scrollable tabs body Should (TM) apply to other scrollable modals if the same HTML structure is used Very important notes (TM): * this does not apply to non-scrollable modals (e.g. delete and report) * this only applies to the body of the modal where scrollable content is usually located (as per selector). Example of when it does not apply: * if we try to scroll near the search bar (e.g. on GIFs modal), we will still scroll the background * if we make the modal non-scrollable (e.g. limited search in emoji or its tabs), there is no overscroll protection Why I chose this implementation: * I have implemented this recently when all browsers started supporting it in the last months of 2022 * we cannot just disable the main body/html element scrollbar because it is likely to create headache-inducing content redraw situations * minimalistic and it is a relatively modern way to do it * about 300% better than some client-side javascript spaghetteh to avoid content redraws * methodical alternative is to reimplement site-wide modals/scrolling (LMAO) * I did not apply it to .modal-body because it does not work when we scroll in the empty area on the sides of the scrollable area (which I always do). Reviewed-on: #100 Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net> Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net> |
||
---|---|---|
files | ||
migrations | ||
.gitattributes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
Dockerfile | ||
LICENSE | ||
docker-compose.yml | ||
env_template | ||
gunicorn.conf.py | ||
imei.sh | ||
nginx-headers.conf | ||
nginx-serve-static.conf | ||
nginx.conf | ||
pg_hba.conf | ||
readme.md | ||
requirements.txt | ||
schema.sql | ||
seed-db.sql | ||
snappy_event_WPD.txt | ||
snappy_event_rDrama.txt | ||
snappy_rDrama.txt | ||
startup.sh | ||
startup_chat.sh | ||
startup_docker.sh | ||
supervisord.conf | ||
ubuntu_setup.sh |
readme.md
This code runs https://rdrama.net and https://watchpeopledie.tv
Installation (Windows/Linux/MacOS)
1- Install Docker on your machine. Docker installation
2- Run the following commands in the terminal:
git clone https://fsdfsd.net/rDrama/rDrama.git
cd rDrama
cp env_template .env
docker-compose down --rmi all --remove-orphans --volumes
docker-compose up
3- That's it! Visit http://localhost
in your browser and make an account (the first account to be made will have full admin rights)
4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, edit the variables in the .env
file and then restart the docker container.