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

Center and size officer profile pictures #974

Merged
merged 7 commits into from
Jul 17, 2023

Conversation

michplunkett
Copy link
Collaborator

@michplunkett michplunkett commented Jul 14, 2023

Fixes issue

#931

Description of Changes

I centered and addressed sizing issues with the officer profile pictures in the profile page, officer list page, and officer image page.

Screenshots (if appropriate)

Located in the comments.

Tests and linting

  • This branch is up-to-date with the develop branch.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.

@michplunkett michplunkett self-assigned this Jul 14, 2023
@michplunkett michplunkett linked an issue Jul 14, 2023 that may be closed by this pull request
@@ -585,10 +585,44 @@ tr:hover .row-actions {
}

.officer-face {
border: none;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Before:
Screenshot 2023-07-14 at 11 54 51 AM

After:
Screenshot 2023-07-14 at 11 32 15 AM

Comment on lines +616 to +622
#face-img {
border: none;
display: block;
margin: auto;
max-height: 500px;
padding-bottom: 10px;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Before:
Screenshot 2023-07-14 at 11 54 40 AM

After:
Screenshot 2023-07-14 at 11 50 27 AM

Comment on lines +593 to +595
.officer-face.officer-profile {
display: block;
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Before:
Screenshot 2023-07-14 at 11 56 45 AM

Copy link
Member

Choose a reason for hiding this comment

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

this looks as a great way to show the problem in a way that the "before" screenshot didn't above.

Comment on lines +597 to +601
@media (min-width: 992px) {
.officer-face.officer-profile {
height: 510px;
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Screenshot 2023-07-14 at 12 02 57 PM

Comment on lines +603 to +607
@media (min-width: 768px) and (max-width: 991px) {
.officer-face.officer-profile {
height: 590px;
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Screenshot 2023-07-14 at 12 06 04 PM

Comment on lines +609 to +614
@media (max-width: 767px) {
.officer-face.officer-profile {
height: 460px;
padding-bottom: 10px;
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Screenshot 2023-07-14 at 12 06 39 PM

@michplunkett michplunkett changed the title Center and size officer profile picture Center and size officer profile pictures Jul 14, 2023
@michplunkett michplunkett marked this pull request as ready for review July 14, 2023 17:07
@michplunkett michplunkett linked an issue Jul 14, 2023 that may be closed by this pull request
Comment on lines +593 to +595
.officer-face.officer-profile {
display: block;
}
Copy link
Member

Choose a reason for hiding this comment

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

this looks as a great way to show the problem in a way that the "before" screenshot didn't above.

@michplunkett michplunkett merged commit b462294 into develop Jul 17, 2023
@michplunkett michplunkett deleted the officer_profile_picture branch July 17, 2023 18:41
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Sep 6, 2023
## Fixes issue
lucyparsons#931

## Description of Changes
I centered and addressed sizing issues with the officer profile pictures
in the profile page, officer list page, and officer image page.

## Screenshots (if appropriate)
Located in the comments.

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Sep 25, 2023
## Fixes issue
lucyparsons#931

## Description of Changes
I centered and addressed sizing issues with the officer profile pictures
in the profile page, officer list page, and officer image page.

## Screenshots (if appropriate)
Located in the comments.

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Oct 5, 2023
## Fixes issue
lucyparsons#931

## Description of Changes
I centered and addressed sizing issues with the officer profile pictures
in the profile page, officer list page, and officer image page.

## Screenshots (if appropriate)
Located in the comments.

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
AetherUnbound pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Oct 9, 2023
## Fixes issue
lucyparsons#931

## Description of Changes
I centered and addressed sizing issues with the officer profile pictures
in the profile page, officer list page, and officer image page.

## Screenshots (if appropriate)
Located in the comments.

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
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.

Improve /department/id search view for mobile
2 participants