Disable "expand" function


(Den Andreychuk) #1

I want to open the profile permanently expanded and remove the “expand” button. How can I do this?


#2

This is something which I wanted to do for a long time now. Even I’m interested in knowing this.


(Den Andreychuk) #3

Guys, any ideas? Someone help me plz.


(Mittineague) #4

I think you’ll need to write JavaScript to give the element a click event.


(cpradio) #5

Or a plugin that overrides that template/controller/component so it doesn’t default to “collapsed-info”


(Den Andreychuk) #6

@cpradio @Mittineague But Discourse already has this function. Can someone share it?


(cpradio) #7

No it doesn’t. It has what you are currently experiencing, with it collapsed and you have to manually expand it. There isn’t an option to default to expanding it.


(Kris) #8

You could force some of the hidden information to appear with CSS (background image, bio, etc), but some details are unavailable until expanded (mostly information for staff users).

Adding this CSS to your customization settings will get you some of the way there, but the full functionality you’re looking for would likely need a full plugin.

.user-main .about.collapsed-info {
  .details {
    .primary {
      .avatar {
        width: auto;
        height: 120px;
      }
      h3 {
        display: block;
      }
      .bio {
        display: block;
      }
      h1 {
        font-size: 2em;
      }
    }
  }
  .profile-image {
    height: 420px;
  }
}