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

Fix content warning styles #459

Merged
merged 1 commit into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OpenOversight/app/static/js/contentWarning.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function createOverlay(container) {
const warningText = $(
"<span><h3>Content Warning</h3><p>This video may be disturbing for some viewers</p></span>"
)
const hide = $('<button type="button" class="btn btn-lg">Show video</button>')
const hide = $('<button type="button" class="btn btn-lg btn-light">Show video</button>')
hide.click(() => overlay.css("display", "none"))

const wrapper = $("<div>")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h3>Links</h3>
<li class="list-group-item">
<a href="{{ link.url }}" rel="noopener noreferrer" target="_blank">{{ link.title or link.url }}</a>
{% if link.has_content_warning %}
<span class="label label-danger"
<span class="badge text-bg-danger"
title="The linked page may be disturbing for some viewers">Content Warning</span>
{% endif %}
{% if officer and (is_admin_or_coordinator or link.created_by == current_user.id) %}
Expand Down Expand Up @@ -83,7 +83,7 @@ <h3>Other videos</h3>
<li class="list-group-item">
<a href="{{ link.url }}" target="_blank" rel="noopener noreferrer">{{ link.title or link.url }}</a>
{% if link.has_content_warning %}
<span class="label label-danger"
<span class="badge text-bg-danger"
title="The linked video may be disturbing for some viewers">Content Warning</span>
{% endif %}
{% if officer and (current_user.is_admin_or_coordinator(officer.department)
Expand Down