Move the `Me too` button for better reading experience

I am guessing this new me too button is for people to say they have this issue and is only on the first post.

Any chance the button can be move to the top as it is not comfortable/natural being in the middle of the content

thanks

Its a new feature in discourse that may not have a adjustment, only via css (AI response below)

Agreed. The “Me too” button would feel much more natural at the top with the other actions. Hopefully it can be moved there in a future update.

Yeah, I don’t know that I love it. I guess the functionality is fine, but it is annoying to have a big button appear.

I think I disagree about where it ought to move to, though. I think it ought to be in the bottom button bar, alongside the :heart: :link: ⋯ Reply actions.

That’s where you look when you want to interact with a post, so that’s where I think this interaction should go, too.

Implemented.

sweet, thanks

this is a bit cheeky, but did you edit the CSS or a plugin or supply changes upstream.

If it is a custom job, Can I have the code?

thanks

Yes, sure:

// Render a second 'Me Too' button in the post controls
api.registerValueTransformer(
  "post-menu-buttons",
  ({ value: dag, context: { post, buttonKeys } }) => {
    // The 'Me Too' button only belongs on the OP
    if (post.post_number !== 1) {
      return;
    }
    // Add it before the Like button
    dag.add(
      "sharedIssue",
      SolvedSharedIssueButton,
      {
        before: buttonKeys.LIKE,
      }
    );
  }
);

and

// 'Me Too' button placement
.solved-shared-issue-row {
    // Hide the button in its default location
    display: none;

    // Show it when rendered inside the post controls
    .post-controls & {
        display: contents;
    }
}

nice one, that would of taken me ages to sort.

Maybe post at discourse and say “we” implemented this over at forums.virtualmin.com and get a bit of free advertising. :smiley:

Where is the Discourse post to comment on?

There was not a post in particular I had in mind. Just over at their support forum.

It was just an idea. Nothing firm.

I wouldn’t want to do anything spammy. Unless there’s specifically someone asking about relocating the Me Too button, I think it’d be off-topic. It’s just a tiny CSS change, not exactly rocket surgery.

The first post in this thread is now half covered by the solution.

Unrelated?

I have edited the picture in the first post as it had some cropped text, does it look normal now?

Probably. An image of a post just looks a bit weird.