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

Remove row > row nesting #1401

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Remove row > row nesting #1401

merged 1 commit into from
Oct 14, 2024

Conversation

thatbudakguy
Copy link
Member

This fixes some alignment issues and removes some redundant
classes.

Closes #1318

See also geoblacklight/geoblacklight#1607

This fixes some alignment issues and removes some redundant
classes.

Closes #1318

See also geoblacklight/geoblacklight#1607
@thatbudakguy
Copy link
Member Author

Easier to review with "hide whitespace" turned on.

<% if (@document.image? || @document.item_viewer.iiif) && !@document[Settings.FIELDS[:GEOREFERENCED]] %>
<%= render AlertComponent.new(type: 'info', body: t('earthworks.show.no_georeference_message')) %>
<% end %>
<%= render Geoblacklight::ViewerContainerComponent.new(document: @document) %>
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -2,7 +2,7 @@ module EarthworksBlacklightHelper
include Blacklight::LayoutHelperBehavior
# Blacklight override for show main content
def show_content_classes
Copy link
Contributor

@jcoyne jcoyne Sep 16, 2024

Choose a reason for hiding this comment

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

Can you remove this method override now? https://github.com/projectblacklight/blacklight/blob/c4ce13eee7eb0819c72f35a46db4eb565e6dfaa6/app/helpers/blacklight/layout_helper_behavior.rb#L32C1-L34C8 This seems to override with would almost be the same as the default now. Provided that

is okay for show.

Copy link
Member Author

Choose a reason for hiding this comment

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

Idk, the page looks pretty different if I remove it:

With col-lg-10:
Screenshot 2024-09-30 at 10 19 10

With col-lg-9 (blacklight default):
Screenshot 2024-09-30 at 10 19 00

I tried to change the col width for the map to expand to take up that new whitespace, but it caused it to wrap.

@jcoyne jcoyne merged commit 72ee5e6 into main Oct 14, 2024
2 checks passed
@jcoyne jcoyne deleted the row-nesting branch October 14, 2024 18:16
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.

.row inside .row
2 participants