Skip to content

Commit

Permalink
#365: updated miscellaneous style issues due to package update
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxue1123 committed Jan 14, 2025
1 parent 385c875 commit ec057fc
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 73 deletions.
32 changes: 14 additions & 18 deletions src/components/Experiment/Projects.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,13 @@ class Projects extends React.Component {
onChange={this.handleInputChange}
onKeyDown={this.raiseInputKeyDown}
/>
<div className="input-group-text">
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleProjectsSearch}
>
Search
</button>
</div>
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleProjectsSearch}
>
Search
</button>
</div>
}
{
Expand Down Expand Up @@ -273,15 +271,13 @@ class Projects extends React.Component {
}
{
filterOption === "description" &&
<div className="input-group-text">
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleProjectsSearch}
>
Search
</button>
</div>
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleProjectsSearch}
>
Search
</button>
}
{
filterOption === "community" &&
Expand Down
16 changes: 7 additions & 9 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,13 @@ const Header = (props) => {
onChange={props.onQueryChange}
onKeyDown={raiseInputKeyDown}
/>
<div className="input-group-text">
<button
className="btn btn-sm btn-outline-secondary"
type="button"
onClick={handleSearch}
>
<i className="fa fa-search"></i>
</button>
</div>
<button
className="btn btn-sm btn-outline-secondary"
type="button"
onClick={handleSearch}
>
<i className="fa fa-search"></i>
</button>
</form>
}
{ props.userStatus !== "active" ?
Expand Down
16 changes: 7 additions & 9 deletions src/components/Project/Public/PublicProjectsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,13 @@ class PublicProjectsList extends React.Component {
}
{
filterOption === "description" &&
<div className="input-group-text">
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleProjectsSearch}
>
Search
</button>
</div>
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleProjectsSearch}
>
Search
</button>
}
{
filterOption === "community" &&
Expand Down
6 changes: 3 additions & 3 deletions src/components/SliceViewer/ErrorMessageAccordion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const ErrorMessageAccordion = props => {
<div className="panel-heading">
<h6
className="panel-title mb-0"
data-bs-toggle="collapse"
data-bs-target="#errorTableCollapse"
data-toggle="collapse"
data-target="#errorTableCollapse"
>
This slice is in <b>{state}</b> state due to the following errors.
</h6>
Expand Down Expand Up @@ -41,4 +41,4 @@ const ErrorMessageAccordion = props => {
);
}

export default ErrorMessageAccordion;
export default ErrorMessageAccordion;
2 changes: 1 addition & 1 deletion src/components/SliceViewer/Graph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import IconSmartNIC from '../../imgs/SliceComponentIcons/SmartNIC.png';
import IconNVME from '../../imgs/SliceComponentIcons/NVME.png';
import IconStorage from '../../imgs/SliceComponentIcons/RotatingStorage.png';
import IconNS from '../../imgs/SliceComponentIcons/NetworkService.png';
import IconFPGA from '../../imgs/SliceComponentIcons/NetworkService.png';
import IconFPGA from '../../imgs/SliceComponentIcons/FPGA.png';
import _ from "lodash";
import { OverlayTrigger, Tooltip } from 'react-bootstrap';

Expand Down
16 changes: 7 additions & 9 deletions src/components/UserProfile/ProjectRoles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,13 @@ class ProjectRoles extends React.Component {
onChange={this.handleInputChange}
onKeyDown={this.raiseInputKeyDown}
/>
<div className="input-group-text">
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleProjectsSearch}
>
Search
</button>
</div>
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleProjectsSearch}
>
Search
</button>
</div>
<div className="d-flex flex-row-reverse">
{projectsCount} results.
Expand Down
18 changes: 8 additions & 10 deletions src/pages/SearchResults.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,14 @@ class SearchResults extends Component {
onChange={this.props.onQueryChange}
onKeyDown={this.raiseInputKeyDown}
/>
<div className="input-group-text">
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleSearch}
disabled={query.length < 3}
>
Search
</button>
</div>
<button
className="btn btn-outline-primary"
type="button"
onClick={this.handleSearch}
disabled={query.length < 3}
>
Search
</button>
</div>
{
showSpinner && <SpinnerWithText text={"Loading search results..."} />
Expand Down
15 changes: 1 addition & 14 deletions src/styles/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -772,23 +772,10 @@ ul,
max-width: 160px;
}

// Slice Error Messages Accordion with Up/ Down Arrows
// Slice Error Messages
.panel-title {
position: relative;
}

.panel-title::after {
content: "Show Details \f107";
color: #333;
top: -2px;
right: 0px;
position: absolute;
font-family: "FontAwesome"
}

.panel-title[aria-expanded="true"]::after {
content: "Hide Details \f106";
}

.panel-heading-full.panel-heading {
padding: 0;
Expand Down

0 comments on commit ec057fc

Please sign in to comment.