Skip to content

Commit

Permalink
improved tool section design
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueldima authored and andmor- committed May 26, 2020
1 parent 9c3666c commit ac9fc39
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
10 changes: 7 additions & 3 deletions backend/src/main/resources/webui/css/switchboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,18 @@ div.resource .namesize span {
/* tools styles */
div.tool-sublist h3 {
margin: 0;
padding: 20px 0 10px 0px;
font-style: oblique;
padding: 10px 0;
font-family: "Source Sans Pro",Calibri,Arial,Helvetica,sans-serif;
font-size: 20px;
color: #033d71;
background-color: #f3f9fc;
cursor: default;
}
div.tool-sublist h3:hover {
background-color: #eee;
}
div.tool-sublist h3 .section-left-padding {
padding-left: 180px;
padding-left: 10px;
}

div.tool {
Expand Down
21 changes: 7 additions & 14 deletions webui/src/components/ToolList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,9 @@ class ToolSubList extends React.Component {
};

render() {
const styles = {
task: {
color:'#444',
cursor: "default"
},
taskChevron: {
fontSize: "80%",
marginRight: 0
},
const taskChevron = {
fontSize: "80%",
marginRight: 0
};

const sortFn = (t1, t2) => t1.name < t2.name ? -1 : t1.name == t2.name ? 0 : 1;
Expand All @@ -150,9 +144,9 @@ class ToolSubList extends React.Component {
return (
<div className="tool-sublist" onClick={toggle.bind(this, 'show')} >
{ !this.props.task ? false :
<h3 style={styles.task}>
<h3>
<span className="section-left-padding hidden-xs"/>
<Indicator title={"menu-" + (this.state.show ? "down":"right")} style={styles.taskChevron}/>
<Indicator title={"menu-" + (this.state.show ? "down":"right")} style={taskChevron}/>
<Highlighter text={this.props.task}/>
</h3>
}
Expand All @@ -164,7 +158,6 @@ class ToolSubList extends React.Component {
resource={this.props.resource}
highlighter={this.props.highlighter}/>
)}
<hr style={{margin:0}}/>
</div>
);
}
Expand Down Expand Up @@ -228,7 +221,7 @@ class ToolCard extends React.Component {
<div style={{whiteSpace:'nowrap', display: 'inline'}}>
{ !tool.authentication || tool.authentication == "no" ? null
: <div className="badge-holder" title="This tool requires a user account. Please check the Authentication information for more details.">
<span> <span className={"fa fa-key"} aria-hidden="true"/> </span>
<span className={"fa fa-key"} style={{padding:"6px 6px"}} aria-hidden="true"/>
</div> }
</div>
</div>
Expand Down Expand Up @@ -313,7 +306,7 @@ const Indicator = (props) => {
return (
<span style={Object.assign({marginRight:'1em'}, props.style)}>
<span className={"glyphicon glyphicon-"+props.title} style={{fontSize:'90%'}} aria-hidden="true"/>
{" "}
{props.children && props.children.length ? " " : false}
{props.children}
</span>
);
Expand Down

0 comments on commit ac9fc39

Please sign in to comment.