Move the "Add Comment" button

I am working on heavily customized layouts and styles for a documentation site in Confluence, and am having a hard time finding where the position of the Add Comments button is set. Can anyone point me to the right place for Confluence 4.1.2? Thanks!

1 answer

1 accepted

0 vote
Joseph Clark Atlassian Team May 02, 2012

Hey Matthew,

Have a look in confluence-webapp/src/main/webapp/decorators/components/comments.vmd

Joe.

Cool, thanks, that's exactly what I was looking for.

What I'm having trouble with is that the custom theme that I'm building messes up the comment box. Specifically, it re-arranges the buttons in the RTE's header and resizes the comment area.

Any pointers to either a simplified comment control, or a way to load a comment box without using the local decorators' styles?

I've attached an image that shows what it looks like:

Joseph Clark Atlassian Team May 03, 2012

There's no simplified comment control available, unless you wanted to build your own :-)

If you want to override the styling of the comment box, you may have to modify the editor plugin, or provide some overriding CSS with more specific selectors.

Thanks, Joseph. I was able to do enough damage by overriding the styles that the comment box is (mostly) back to normal. Specifically, the spacing of the individual toolbar items was being pushed out by some allocated space settings.

So I made a few minor changes and one big one in a CSS file. Minor changes:

/* reduce Group margins */

.aui-toolbar .toolbar-group {

margin-right: 5px;

}

/* Hide the help, undo, and redo buttons */

#rte-button-help, #rte-button-undo, #rte-button-redo {

display: none;

}

/* Set the default height of the Rich Text Editor to 600 -- this is mostly for the edit pages, but also ends up applying to the comments box */

#rte {

height: 600px;

}

This line fixed the primary spacing issues:


#header .aui-dd-parent, #header .aui-dropdown, #autocomplete-dropdown, #autocomplete-dropdown .aui-dropdown {

width: auto;

}

Posting this here in case anyone can benefit from it. Hope to see some of you at the Summit!

matthew horn

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,919 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you