Revert "feat: wrap search option bubbles if not enough space (#918)"
This reverts commit be6a9fdb34.
This commit is contained in:
@@ -12,7 +12,8 @@ const styles = {
|
|||||||
|
|
||||||
const Bubble = ({ label, selected, onSelect }: BubbleProperties) => (
|
const Bubble = ({ label, selected, onSelect }: BubbleProperties) => (
|
||||||
<span
|
<span
|
||||||
className={`${styles.base} ${
|
role="tab"
|
||||||
|
className={`bubble ${styles.base} ${
|
||||||
selected ? styles.selected : styles.unselected
|
selected ? styles.selected : styles.unselected
|
||||||
}`}
|
}`}
|
||||||
onClick={onSelect}
|
onClick={onSelect}
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ export const NotesView: FunctionComponent<Props> = observer(
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="filter-section" role="search">
|
<div className="filter-section" role="search">
|
||||||
<div className="relative">
|
<div>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="search-bar"
|
id="search-bar"
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ export const SearchOptions = observer(({ appState }: Props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="search-options" onMouseDown={(e) => e.preventDefault()}>
|
<div
|
||||||
|
role="tablist"
|
||||||
|
className="search-options justify-center"
|
||||||
|
onMouseDown={(e) => e.preventDefault()}
|
||||||
|
>
|
||||||
<Bubble
|
<Bubble
|
||||||
label="Protected Contents"
|
label="Protected Contents"
|
||||||
selected={includeProtectedContents}
|
selected={includeProtectedContents}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
|
|
||||||
.filter-section {
|
.filter-section {
|
||||||
clear: left;
|
clear: left;
|
||||||
|
max-height: 80px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -76,11 +77,14 @@
|
|||||||
.search-options {
|
.search-options {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-wrap: wrap;
|
grid-template-columns: repeat( 3, 1fr );
|
||||||
gap: 0.5rem;
|
gap: .5rem;
|
||||||
|
|
||||||
font-size: var(--sn-stylekit-font-size-p);
|
font-size: var(--sn-stylekit-font-size-p);
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
overflow-x: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-clear-button {
|
#search-clear-button {
|
||||||
@@ -96,7 +100,7 @@
|
|||||||
line-height: 17px;
|
line-height: 17px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 50%;
|
top: 20%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
right: 10px;
|
right: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
Reference in New Issue
Block a user