Skip to content

Commit

Permalink
feat: don't change ltr into rtl in arabic
Browse files Browse the repository at this point in the history
  • Loading branch information
omargawdat committed Feb 27, 2025
1 parent e5c2986 commit daf9003
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,4 @@ dump.rdb
docker-compose.prod.yml

# Environments
#.env.local
.envs/*
!.envs/.example/
.env
13 changes: 13 additions & 0 deletions assets/static/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[dir="rtl"] {
direction: ltr !important;
}

[dir="rtl"] .unfold-sidebar {
left: 0 !important;
right: auto !important;
}

[dir="rtl"] .unfold-main-wrapper {
margin-left: 280px !important;
margin-right: 0 !important;
}
1 change: 0 additions & 1 deletion common/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from unfold.components import BaseComponent
from unfold.components import register_component


# Constants
MIN_COLOR_VALUE = 2
MAX_COLOR_VALUE = 6
Expand Down
6 changes: 6 additions & 0 deletions config/integrations/unfold.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"LOGIN": {
"image": lambda request: static("images/login.png"),
},
"STYLES": [
lambda request: static("css/style.css"),
],
"SCRIPTS": [
lambda request: static("js/script.js"),
],
"SITE_SYMBOL": "anchor",
"SITE_ICON": {
"light": lambda request: static("images/identity.png"),
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
POSTGRES_DB: 'mydatabase'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres' # pragma: allowlist secret
env_file:
- .env

postgres:
image: postgres:17-alpine
Expand Down
1 change: 1 addition & 0 deletions scripts/docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ python manage.py migrate

# Start the appropriate server based on environment
if [ "$IS_LOCAL" = "true" ]; then
python manage.py createsu
exec python manage.py runserver_plus 0.0.0.0:8000
else
# python /app/manage.py collectstatic --noinput
Expand Down

0 comments on commit daf9003

Please sign in to comment.