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

pencil icon moved to the right ... menu #4022

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { PropTypes } from "prop-types";
import "./styles.less";
import PersonaBarSelectionArrow from "./_PersonaBarSelectionArrow";
import PersonaBarExpandCollapseIcon from "./_PersonaBarExpandCollapseIcon";
import PersonaBarDraftPencilIcon from "./_PersonaBarDraftPencilIcon";

export class PersonaBarPageTreeMenu extends Component {

Expand Down Expand Up @@ -47,11 +48,12 @@ export class PersonaBarPageTreeMenu extends Component {

return listItems.map((item, index) => {
return (
<li key={"pageTreeListItem" + index} className="list-item-menu">
<li key={"pageTreeListItem" + index} className="list-item-menu-right">
<div
className={(item.selected) ? "list-item-highlight" : null}
style={{ height: "28px", lineHeight: "35px" }}>
<div className="draft-pencil">
<PersonaBarDraftPencilIcon display={item.hasUnpublishedChanges} />
{item.canViewPage && <PersonaBarSelectionArrow
CallCustomAction={this.props.CallCustomAction}
onAddPage={this.props.onAddPage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import utils from "utils";
import "./styles.less";
import { SingleLineInput } from "@dnnsoftware/dnn-react-common";
import PersonaBarPageIcon from "./_PersonaBarPageIcon";
import PersonaBarDraftPencilIcon from "./_PersonaBarDraftPencilIcon";

export class PersonaBarPageTreeview extends Component {

Expand Down Expand Up @@ -178,9 +177,6 @@ export class PersonaBarPageTreeview extends Component {
item.name
}
</span>
<div className="draft-pencil">
<PersonaBarDraftPencilIcon display={item.hasUnpublishedChanges} />
</div>
</div>
{((item.childListItems && !item.isOpen) || !item.childListItems) && index === total && this.renderDropZone("after", item)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@
}
}
}
.list-item-menu-right {
width: 70px;
.draft-pencil {
width: auto;
display: inline-block;
svg:hover {
fill: @alto;
}
.dnn-persona-bar-draft-icon {
display: inline-block;
width: 20px;
}
.selection-arrow {
width: 50px;
}
}
}
.tree-menu-ul ul {
padding: 0;
}
Expand Down