Ticket #608 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

User profile pictures are too big

Reported by: ed Owned by: benj
Priority: minor Milestone: Maintenance
Component: Drupal modules & settings Keywords:
Cc: jim Estimated Number of Hours: 0.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0.8

Description (last modified by ed) (diff)

The user profile pictures on the user profile nodes are too big.

e.g.
https://transitionnetwork.org/people/tina-clarke

Please investigate and restrain them into a suitable maximum size

NB: Ed is keeping a number of small UI-ish tickets back for Ben to do in a lump when we've built up enough so don't do anything yet.

Change History

comment:1 Changed 3 years ago by ed

  • Priority changed from major to minor
  • Description modified (diff)

comment:2 Changed 3 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.05
  • Total Hours changed from 0.0 to 0.05

FWIW, this CSS will make any 'too big' image in the content area fit the available space nicely:

#main-content img {
  max-width: 100%;
  height: auto;
}

comment:3 Changed 3 years ago by ed

if it is that quick can you roll it out jim? (sorry ben!)

comment:4 Changed 3 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.1
  • Total Hours changed from 0.05 to 0.15

I've just committed the change to the scss, but not yet compiled to CSS or pushed to the server.

Ed, Ben, do you want me to do that? I'd prefer this was tested first really since it will affect EVERY image in the content area -- though if they're less than the width available nothing should happen.

Let me know.

comment:5 Changed 3 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.5
  • Total Hours changed from 0.15 to 0.65

FYI I've now recompiled the SASS on my machine from the latest changes... It wouldn' compile and there is a lot of broken scss fragments. I've therefore removed the 'v1' and v2' scss files as they're not being used.

After a cleanup it now compiles. I've also set Compass to be in Production mode so it doesn't output all those comments and debugging. Ben, please remember to pull before you do anything else.

This will arrive in STG for us to have a look at soon.

comment:6 Changed 3 years ago by ed

Great - let me know when to check on STG please

comment:7 Changed 3 years ago by ed

I'm looking on STG. I'm also having a brainwave (rather late one) and have removed the Transition Nearby block from the 'people/*' pages - which now makes the profile pics look fine.

So my initial bug is fixed by removing the block from the people pages.

*Ahem*

I can't see any examples of pictures looking too big or too small now - SO

I approve this...

Last edited 3 years ago by ed (previous) (diff)

comment:8 Changed 3 years ago by jim

  • Add Hours to Ticket changed from 0.0 to 0.15
  • Status changed from new to closed
  • Resolution set to fixed
  • Total Hours changed from 0.65 to 0.8

This fix is also on PROD, and tested by going to https://www.transitionnetwork.org/people/tina-clarke and then setting page width narrower... image gracefully scaled rather than overlapping.

Marking fixed.

comment:9 Changed 3 years ago by ed

ta

Note: See TracTickets for help on using tickets.