Skip to content

made base.html template responsive #9280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

neginkou
Copy link

@neginkou neginkou commented Mar 8, 2024

Description:
This pull request makes the base.html template in the Django REST Framework project responsive. The changes include adding a viewport meta tag to ensure proper scaling on different devices.

The motivation for this change is to improve the user experience of the browsable API on mobile devices and tablets.

Related Issue:
Refs #9025 - Make responsive base.html template

@@ -22,7 +23,10 @@

<link rel="stylesheet" type="text/css" href="{% static "rest_framework/css/prettify.css" %}"/>
<link rel="stylesheet" type="text/css" href="{% static "rest_framework/css/default.css" %}"/>
{% if code_style %}<style>{{ code_style }}</style>{% endif %}
{% if code_style %}
<style>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened to {{ code_style }}?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants