Skip to content

Commit 9656be7

Browse files
committed
Removed sorting feature CSS and residual code.
1 parent fe30078 commit 9656be7

File tree

2 files changed

+6
-73
lines changed

2 files changed

+6
-73
lines changed

src/CodeSnippetDisplay.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ const CODE_SNIPPET_MORE_OTPIONS_DOWNLOAD =
130130
'jp-codeSnippet-more-options-download';
131131
const CODE_SNIPPET_CREATE_NEW_BTN = 'jp-createSnippetBtn';
132132
const CODE_SNIPPET_NAME = 'jp-codeSnippet-name';
133-
const CODE_SNIPPET_HEADER_BOX = 'jp-codeSnippet-header-class';
134133

135134
/**
136135
* The threshold in pixels to start a drag event.
@@ -1620,14 +1619,12 @@ export class CodeSnippetDisplay extends React.Component<
16201619
<addIcon.react tag="span" right="7px" top="5px" />
16211620
</button>
16221621
</header>
1623-
<div className={CODE_SNIPPET_HEADER_BOX}>
1624-
<FilterTools
1625-
tagDictionary={this.getActiveTagsDictionary()}
1626-
languageTags={this.getActiveTags()[1]}
1627-
snippetTags={this.getActiveTags()[0]}
1628-
onFilter={this.filterSnippets}
1629-
/>
1630-
</div>
1622+
<FilterTools
1623+
tagDictionary={this.getActiveTagsDictionary()}
1624+
languageTags={this.getActiveTags()[1]}
1625+
snippetTags={this.getActiveTags()[0]}
1626+
onFilter={this.filterSnippets}
1627+
/>
16311628
<div className={CODE_SNIPPETS_CONTAINER}>
16321629
<div>
16331630
{this.state.codeSnippets.map((codeSnippet, id) =>

style/base.css

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -679,67 +679,3 @@ mark.jp-codeSnippet-search-bolding {
679679
outline: 1px solid var(--jp-brand-color1);
680680
outline-offset: 4px;
681681
}
682-
683-
/*Sort Feature Elements*/
684-
.jp-codeSnippet-header-class {
685-
display: flex;
686-
border-bottom: var(--jp-border-width) solid var(--jp-border-color1);
687-
width: 100%;
688-
}
689-
690-
.jp-codeSnippet-sort-tool {
691-
height: 20px;
692-
width: 16px;
693-
float: right;
694-
margin-right: 6px;
695-
margin-top: 5px;
696-
}
697-
698-
.jp-codeSnippet-sort-icon-inactive {
699-
background-image: url(./icon/jupyter_search_option_inactive.svg);
700-
background-repeat: no-repeat;
701-
height: 20px;
702-
width: 16px;
703-
float: right;
704-
cursor: pointer;
705-
}
706-
707-
.jp-codeSnippet-sort-icon-active {
708-
background-image: url(./icon/jupyter_search_option_active.svg);
709-
background-repeat: no-repeat;
710-
height: 20px;
711-
width: 16px;
712-
float: right;
713-
cursor: pointer;
714-
}
715-
716-
.jp-codeSnippet-sort-content {
717-
width: 158px;
718-
}
719-
720-
.jp-codeSnippet-sort-sortby {
721-
white-space: pre;
722-
padding-bottom: 2px;
723-
margin-left: 18px;
724-
}
725-
726-
.jp-codeSnippet-sort-option-unselected {
727-
padding-top: 2px;
728-
white-space: pre;
729-
cursor: pointer;
730-
padding-left: 18px;
731-
}
732-
.jp-codeSnippet-sort-option-selected {
733-
padding-top: 2px;
734-
white-space: pre;
735-
cursor: pointer;
736-
display: flex;
737-
}
738-
739-
.jp-codeSnippet-sort-option-unselected:hover {
740-
background: var(--jp-layout-color2);
741-
}
742-
743-
.jp-codeSnippet-sort-line {
744-
border-bottom: 1px var(--jp-layout-color3) solid;
745-
}

0 commit comments

Comments
 (0)