diff options
| author | benal01 <bja4245@rit.edu> | 2025-03-28 21:56:47 -0400 | 
|---|---|---|
| committer | benal01 <bja4245@rit.edu> | 2025-03-28 21:56:47 -0400 | 
| commit | 9e011d85fd307768f7cec7214ca873208574ecfb (patch) | |
| tree | 691dacc5aca8029f9618c2d3258f2c84d5144bf0 /ufund-ui | |
| parent | 0b4c76c5dc7313ae42c62be3c682c1f88cec13fd (diff) | |
| download | JellySolutions-9e011d85fd307768f7cec7214ca873208574ecfb.tar.gz JellySolutions-9e011d85fd307768f7cec7214ca873208574ecfb.tar.bz2 JellySolutions-9e011d85fd307768f7cec7214ca873208574ecfb.zip  | |
changed styling of search display to be wider and expand filter descriptions
Diffstat (limited to 'ufund-ui')
3 files changed, 21 insertions, 14 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.css b/ufund-ui/src/app/components/need-list/need-list.component.css index 2eb6a8d..19c126f 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.css +++ b/ufund-ui/src/app/components/need-list/need-list.component.css @@ -67,4 +67,7 @@ li > button:hover p {      background-color: #d9d9d9;      border: 2px solid #000;      border-radius: 5px; +    .wide-input { +        width: 60%; +    }   }
\ No newline at end of file diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html index 693307f..5e9a540 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.html +++ b/ufund-ui/src/app/components/need-list/need-list.component.html @@ -1,18 +1,22 @@  <h1>Needs List</h1>  <div id="search-container"> -    <label for="sort">Sort by:</label> -    <select [(ngModel)] = "sortSelection" id="sort" (change)="search(searchForm.value)" [value]="sortSelection"> -        <option *ngFor="let algorithm of SortingAlgoArrays" value="{{algorithm.name}}"> -            {{algorithm.display[sortMode === 'Ascending' ? 0 : 1]}} -        </option> -    </select> -    <button (click)="changeSortMode(searchForm.value)"> -        {{sortMode}} -    </button> -    <form id="search-form" #searchForm="ngForm"> -        <input type="text" name="search" placeholder="Search in {{needs.length}} needs..." (input)="search(searchForm.value)" ngModel> -        <input type="reset" value="Clear" (click)="search(null)"> <br> -    </form> +    <section> +        <label for="sort">Sort by: </label> +        <select [(ngModel)] = "sortSelection" class="wide-input" (change)="search(searchForm.value)" [value]="sortSelection"> +            <option *ngFor="let algorithm of SortingAlgoArrays" value="{{algorithm.name}}"> +                {{algorithm.display[sortMode === 'Ascending' ? 0 : 1]}} +            </option> +        </select> +        <button (click)="changeSortMode(searchForm.value)"> +            {{sortMode}} +        </button> +    </section> +    <section> +        <form id="search-form" #searchForm="ngForm"> +            <input type="text" name="search" class="wide-input" placeholder="Search in {{needs.length}} needs..." (input)="search(searchForm.value)" ngModel> +            <input type="reset" value="Clear" (click)="search(null)"> <br> +        </form> +    </section>      <!--<button (click)="close()">Close</button>-->  </div> diff --git a/ufund-ui/src/app/components/need-list/need-list.component.ts b/ufund-ui/src/app/components/need-list/need-list.component.ts index f935e03..4359cfa 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.ts +++ b/ufund-ui/src/app/components/need-list/need-list.component.ts @@ -43,7 +43,7 @@ export class NeedListComponent {    sortSelection: string = 'sortByGoal';    SortingAlgoArrays: {func:sortAlgo,name:string, display:string[]}[] = [ -    {func:sortByGoal,name:"sortByGoal", display:["Max Goal", "Min Goal"]}, +    {func:sortByGoal,name:"sortByGoal", display:["Maximum Goal", "Minimum Goal"]},      {func:sortByName,name:"sortByName", display:["Name", "Name (Descending)"]},    ];  | 
