@@ -134,6 +134,12 @@ We also need to update [${RESOURCE_BACKUP_NAME}](https://github.com/${REPO_FULL_
134134 }
135135 }
136136
137+ function copyToClipboard(text : string ) {
138+ navigator .clipboard .writeText (text ).then (() => {
139+ // You could add a toast notification here if desired
140+ });
141+ }
142+
137143 function filterResults(
138144 query : string ,
139145 selectedProvider : string ,
@@ -231,16 +237,22 @@ We also need to update [${RESOURCE_BACKUP_NAME}](https://github.com/${REPO_FULL_
231237 <!-- Search and Filters -->
232238 <div class =" search-section" >
233239 <div class =" search-bar-container" >
234- <input
235- id =" query"
236- bind:value ={query }
237- type =" search"
238- autocomplete =" off"
239- name =" query"
240- aria-label =" Search models"
241- placeholder =" Search model..."
242- class =" search-input"
243- />
240+ <div class =" search-input-wrapper" >
241+ <svg class =" search-icon" width =" 20" height =" 20" viewBox =" 0 0 20 20" fill =" none" >
242+ <circle cx =" 8.5" cy =" 8.5" r =" 5.75" stroke =" currentColor" stroke-width =" 1.5" />
243+ <path d =" M12.5 12.5L16.5 16.5" stroke =" currentColor" stroke-width =" 1.5" stroke-linecap =" round" />
244+ </svg >
245+ <input
246+ id =" query"
247+ bind:value ={query }
248+ type =" search"
249+ autocomplete =" off"
250+ name =" query"
251+ aria-label =" Search models"
252+ placeholder =" Search model..."
253+ class =" search-input"
254+ />
255+ </div >
244256
245257 <ProviderDropdown bind:selectedProvider {providers } />
246258 </div >
@@ -318,6 +330,17 @@ We also need to update [${RESOURCE_BACKUP_NAME}](https://github.com/${REPO_FULL_
318330 {/if }
319331 </div >
320332 <span class ="model-title" >{name }</span >
333+ <button
334+ class =" copy-button"
335+ on:click ={() => copyToClipboard (name )}
336+ title =" Copy model name"
337+ type =" button"
338+ >
339+ <svg width =" 14" height =" 14" viewBox =" 0 0 14 14" fill =" none" >
340+ <rect x =" 4" y =" 4" width =" 8" height =" 8" rx =" 1.5" stroke =" currentColor" stroke-width =" 1.2" />
341+ <path d =" M2 6V2.5C2 1.67157 2.67157 1 3.5 1H7" stroke =" currentColor" stroke-width =" 1.2" />
342+ </svg >
343+ </button >
321344 </div >
322345 </td >
323346 <td class ="context-cell" >{max_input_tokens && max_input_tokens > 0 ? (max_input_tokens >= 1000000 ? (max_input_tokens / 1000000 ).toFixed (0 ) + ' M' : (max_input_tokens / 1000 ).toFixed (0 ) + ' K' ) : ' —' }</td >
@@ -482,16 +505,34 @@ We also need to update [${RESOURCE_BACKUP_NAME}](https://github.com/${REPO_FULL_
482505 display : flex ;
483506 gap : 1rem ;
484507 margin-bottom : 1rem ;
508+ align-items : center ;
485509 }
486510
487- .search-input {
511+ .search-input-wrapper {
512+ position : relative ;
488513 flex : 1 ;
489- padding : 0.875rem 1rem ;
514+ }
515+
516+ .search-icon {
517+ position : absolute ;
518+ left : 1rem ;
519+ top : 50% ;
520+ transform : translateY (-50% );
521+ color : var (--muted-color );
522+ pointer-events : none ;
523+ z-index : 1 ;
524+ }
525+
526+ .search-input {
527+ width : 100% ;
528+ padding : 0.875rem 1rem 0.875rem 3rem ;
490529 font-size : 1rem ;
491530 border : 1px solid var (--muted-border-color );
492531 border-radius : 8px ;
493- background-color : var ( --card-background-color ) ;
532+ background-color : #ffffff ;
494533 transition : all 0.2s ease ;
534+ height : 48px ;
535+ box-sizing : border-box ;
495536 }
496537
497538 .search-input :focus {
@@ -566,7 +607,7 @@ We also need to update [${RESOURCE_BACKUP_NAME}](https://github.com/${REPO_FULL_
566607 }
567608
568609 th {
569- padding : 1 rem 1.5rem ;
610+ padding : 0.75 rem 1.5rem ;
570611 text-align : left ;
571612 font-weight : 500 ;
572613 font-size : 0.75rem ;
@@ -589,9 +630,9 @@ We also need to update [${RESOURCE_BACKUP_NAME}](https://github.com/${REPO_FULL_
589630 }
590631
591632 td {
592- padding : 1.25 rem 1.5rem ;
633+ padding : 0.875 rem 1.5rem ;
593634 vertical-align : middle ;
594- font-size : 0.95 rem ;
635+ font-size : 0.9375 rem ;
595636 }
596637
597638 .model-name {
@@ -602,24 +643,49 @@ We also need to update [${RESOURCE_BACKUP_NAME}](https://github.com/${REPO_FULL_
602643 .model-info {
603644 display : flex ;
604645 align-items : center ;
605- gap : 1rem ;
646+ gap : 0.75rem ;
647+ position : relative ;
648+ }
649+
650+ .copy-button {
651+ display : flex ;
652+ align-items : center ;
653+ justify-content : center ;
654+ padding : 0.25rem ;
655+ background : transparent ;
656+ border : none ;
657+ border-radius : 4px ;
658+ cursor : pointer ;
659+ color : #d1d5db ;
660+ transition : all 0.15s ease ;
661+ margin-left : 0.5rem ;
662+ }
663+
664+ .copy-button :hover {
665+ background-color : #f3f4f6 ;
666+ color : #6b7280 ;
667+ }
668+
669+ .copy-button :active {
670+ transform : scale (0.95 );
671+ background-color : #e5e7eb ;
606672 }
607673
608674 .provider-avatar {
609- width : 40 px ;
610- height : 40 px ;
675+ width : 32 px ;
676+ height : 32 px ;
611677 border-radius : 50% ;
612678 background-color : white ;
613679 color : white ;
614680 display : flex ;
615681 align-items : center ;
616682 justify-content : center ;
617683 font-weight : 600 ;
618- font-size : 0.9 rem ;
684+ font-size : 0.75 rem ;
619685 flex-shrink : 0 ;
620686 overflow : hidden ;
621687 position : relative ;
622- padding : 6 px ;
688+ padding : 4 px ;
623689 box-shadow : 0 1px 3px rgba (0 , 0 , 0 , 0.1 );
624690 }
625691
@@ -638,14 +704,14 @@ We also need to update [${RESOURCE_BACKUP_NAME}](https://github.com/${REPO_FULL_
638704 background-color : #1a1a1a ;
639705 color : white ;
640706 font-weight : 600 ;
641- font-size : 0.9 rem ;
707+ font-size : 0.75 rem ;
642708 border-radius : 50% ;
643- margin : -6 px ;
709+ margin : -4 px ;
644710 }
645711
646712 .model-title {
647713 font-family : monospace ;
648- font-size : 0.95 rem ;
714+ font-size : 0.875 rem ;
649715 font-weight : 500 ;
650716 }
651717
0 commit comments