@@ -230,45 +230,48 @@ function componentRight(render, { getSelectionLength$ }) {
230230 effect ( getSelectionLength$ . pipe (
231231 rxjs . filter ( ( l ) => l === 0 ) ,
232232 rxjs . mergeMap ( ( ) => getState$ ( ) . pipe ( rxjs . first ( ) ) ) ,
233- rxjs . map ( ( { view, sort, search } ) => ( { search, $page : render ( createFragment ( `
234- <form style="display: inline-block;" onsubmit="event.preventDefault()">
235- <input class="hidden" placeholder="${ t ( "search" ) } " name="q" style="
236- background: transparent;
237- border: none;
238- padding-left: 5px;
239- color: var(--color);
240- font-size: 0.95rem;"
241- value="${ search || "" } "
242- </form>
243- <button data-action="search" title="${ t ( "Search" ) } ">
244- <img class="component_icon" draggable="false" src="data:image/svg+xml;base64,${ ICONS . MAGNIFYING_GLASS } " alt="search" />
245- </button>
246- <button data-action="view" title="${ t ( "Layout" ) } ">
247- ${ defaultLayout ( view ) }
248- </button>
249- <button data-action="sort" title="${ t ( "Sort" ) } ">
250- ${ defaultSort ( sort ) }
251- </button>
252- <div class="component_dropdown view sort" data-target="sort">
253- <div class="dropdown_container">
254- <ul>
255- <li data-target="type">
256- ${ t ( "Sort By Type" ) }
257- <img class="component_icon" draggable="false" src="data:image/svg+xml;base64,${ ICONS . CHECK } " alt="check" />
258- </li>
259- <li data-target="date">
260- ${ t ( "Sort By Date" ) }
261- </li>
262- <li data-target="name">
263- ${ t ( "Sort By Name" ) }
264- </li>
265- <li data-target="size">
266- ${ t ( "Sort By Size" ) }
267- </li>
268- </ul>
233+ rxjs . map ( ( { view, sort, search } ) => ( {
234+ search,
235+ $page : render ( createFragment ( `
236+ <form style="display: inline-block;" onsubmit="event.preventDefault()">
237+ <input class="hidden" placeholder="${ t ( "search" ) } " name="q" style="
238+ background: transparent;
239+ border: none;
240+ padding-left: 5px;
241+ color: var(--color);
242+ font-size: 0.95rem;"
243+ value="${ search || "" } "
244+ </form>
245+ <button data-action="search" title="${ t ( "Search" ) } ">
246+ <img class="component_icon" draggable="false" src="data:image/svg+xml;base64,${ ICONS . MAGNIFYING_GLASS } " alt="search" />
247+ </button>
248+ <button data-action="view" title="${ t ( "Layout" ) } ">
249+ ${ defaultLayout ( view ) }
250+ </button>
251+ <button data-action="sort" title="${ t ( "Sort" ) } ">
252+ ${ defaultSort ( sort ) }
253+ </button>
254+ <div class="component_dropdown view sort" data-target="sort">
255+ <div class="dropdown_container">
256+ <ul>
257+ <li data-target="type">
258+ ${ t ( "Sort By Type" ) }
259+ <img class="component_icon" draggable="false" src="data:image/svg+xml;base64,${ ICONS . CHECK } " alt="check" />
260+ </li>
261+ <li data-target="date">
262+ ${ t ( "Sort By Date" ) }
263+ </li>
264+ <li data-target="name">
265+ ${ t ( "Sort By Name" ) }
266+ </li>
267+ <li data-target="size">
268+ ${ t ( "Sort By Size" ) }
269+ </li>
270+ </ul>
271+ </div>
269272 </div>
270- </div>
271- ` ) ) } ) ) ,
273+ ` ) )
274+ } ) ) ,
272275 rxjs . mergeMap ( ( { $page, search } ) => rxjs . merge (
273276 // feature: view button
274277 onClick ( qs ( $page , `[data-action="view"]` ) ) . pipe ( rxjs . tap ( ( $button ) => {
0 commit comments