Skip to content
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

Fixed: Correctly show heading in tabular template #259

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

drikusroor
Copy link
Contributor

@drikusroor drikusroor commented Jul 16, 2024

Fixes #261

There seems to be a small markup error in the tabular template: The h2 heading element is closed twice, causing the heading content to be shown outside of the heading element, looking like span-ish text with regards to styling. See also the screenshots below:

Current situation

image

Situation after fix

This PR then removes the first h2 closing tag so that the title will have the correct position and styling.

image

@drikusroor drikusroor changed the title fix: Correctly show heading in tabular template Fixed: Correctly show heading in tabular template Jul 16, 2024
@fdintino
Copy link
Member

Thanks!

@fdintino fdintino merged commit f894371 into theatlantic:master Jul 23, 2024
11 checks passed
@drikusroor drikusroor deleted the patch-1 branch July 23, 2024 14:46
drikusroor added a commit to Amsterdam-Music-Lab/MUSCLE that referenced this pull request Aug 30, 2024
drikusroor added a commit to Amsterdam-Music-Lab/MUSCLE that referenced this pull request Sep 4, 2024
…ck` (#1227)

* feat: Add BlockTranslatedContent model and relate it to Block with a ManyToMany relationship

* refactor: Migrate block content and associated models

* refactor: Add `translated_content` as `ManyToMany` field of `Block` instead of on `BlockTranslatedContent`

* feat: Warn user about missing translated contents

* refactor: Remove hashtag, url, consent & language from block

* refactor: Move warnings to remarks column

* fix: Fix many tests after removing consent/url/hashtags from block model

* doc: Update consent's doc string

* fix: Fix minor test

* fix: Fix remainder of tests

* fix: Validating the model before saving the model and its relations results into errors as the validator looks for translated content using the FKs

* refactor: Handle missing language in content

* fix: Re-add Hooked ID

* refactor(`BlockTranslatedContent`) Refactor `Block`-`BlockTranslatedContent` relationship to `ForeignKey`

- Update Block model to use ForeignKey for translated_contents
- Modify migrations to reflect new relationship
- Adjust admin interface to handle inline editing of translated contents
- Update related queries and methods to use new relationship structure

* refactor: Use tabular inline for block translated content

* fix: Fix border radius top left in markdown input

* feat: Add all necessary fields for experiment translated content to its form

* chore: Remove unnecessary print statement

* fix: Add `BlockTranslatedContentInline` inline to `BlockAdmin`

* fix: Create temporary fix for tabular inline headings appearing out of its h2 element

See also:
- theatlantic/django-nested-admin#261
- theatlantic/django-nested-admin#259

* chore: Incorporate latest version of `django-nested-admin` that includes fix for the tabular inline form's heading

* refactor: Rename test to be more descriptive

* refactor: Incorporate the migration of #1240
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.

Inline heading problem
2 participants