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

[Bug]: Layout Issue in Profiles Advanced View #269

Open
1 task done
SigurdTheBruce opened this issue Nov 13, 2023 · 3 comments
Open
1 task done

[Bug]: Layout Issue in Profiles Advanced View #269

SigurdTheBruce opened this issue Nov 13, 2023 · 3 comments
Labels
✅ Needs frontend 🔥 Product bug A bug which is not directly related to a custom child theme.

Comments

@SigurdTheBruce
Copy link

SigurdTheBruce commented Nov 13, 2023

Contact Details

jonpb@bu.edu

What happened?

There is a display issue with the grid on the profiles page in 'advanced' layout view. Examples: https://www.bumc.bu.edu/derm/meet-our-expert-clinical-and-research-faculty/
https://www.bu.edu/dental/about/people/

Version

1.0.2 (Default)

What browsers are you seeing the problem on?

Firefox, Chrome, Safari

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SigurdTheBruce SigurdTheBruce added the 🔥 Product bug A bug which is not directly related to a custom child theme. label Nov 13, 2023
@timkingbu timkingbu self-assigned this Nov 27, 2023
@timkingbu
Copy link

@SigurdTheBruce This is a CSS bug. I can change this in responsive-foundation/burf-customizations/profiles
/_profile-format-advanced.scss at

.profile-item-advanced {
@extend %col-xs-#{$_profile-adv-cols-xs};
@extend %col-md-#{$_profile-adv-cols-md};
@include breakpoint( $md ) {
&:nth-child( #{$profiles-advanced-cols-md}n+1 ) {
clear: left;
}
}
&:nth-child( #{$profiles-advanced-cols-xs}n+1 ) {
clear: left;
@include breakpoint( $md ) {
clear: none;
}
}
}
(though I am not sure what themes it would affect) or just put in an overwrite in any themes we find the bug (like dental and derm)

@timkingbu
Copy link

timkingbu commented Nov 29, 2023

Proposed solution, change the order the specificity issue seems to resolve itself:

.profile-item-advanced {
	@extend %col-xs-#{$_profile-adv-cols-xs};
	@extend %col-md-#{$_profile-adv-cols-md};

	&:nth-child( #{$profiles-advanced-cols-xs}n+1 ) {
		clear: left;

		@include breakpoint( $md ) {
			clear: none;
		}
	}

	&:nth-child( #{$profiles-advanced-cols-md}n+1 ) {
		@include breakpoint( $md ) {
			clear: left;
		}
	}
}

@corinmiller
Copy link

I added custom css to fix https://www.bumc.bu.edu/derm/meet-our-expert-clinical-and-research-faculty/. It appears that .profile-format-advanced isn't picking up the styles in css-grid-base mixin:

@mixin css-grid-base( $masonry: false, $flexible-columns: false, $flexible-column-minimum: 200px ) {
@supports ( display: grid ) {
display: grid;
// The minmax below prevents grid items from overflowing container.
grid-template-columns: repeat( $grid-number-columns, minmax( 0, 1fr ) );
grid-gap: $grid-column-padding;
margin-left: auto;
margin-right: auto;
@media screen and ( max-width: $xs ) {
// Because CSS Grid factors grid gap values into the total width of
// the grid container, if we do not set this to a lower value on very
// small devices, content will be cut off on those devices.
grid-gap: 300px / $grid-number-columns;
}
@if ( $masonry == true ) {
grid-auto-flow: dense;
}
@if ( $flexible-columns == true ) {
grid-template-columns: repeat( auto-fit, minmax( $flexible-column-minimum, 1fr ) );
> * {
@include breakpoint( $xs ) {
grid-column: auto / span 1;
}
}
}
}
}

acketon added a commit that referenced this issue Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Needs frontend 🔥 Product bug A bug which is not directly related to a custom child theme.
Projects
None yet
Development

No branches or pull requests

3 participants