removed custom functions, used angular material native instead
This commit is contained in:
+6
-3
@@ -6,15 +6,18 @@
|
||||
|
||||
<!-- Autocomplete Search Input for Institutions -->
|
||||
<div class="autocomplete-search">
|
||||
<mat-form-field appearance="outline" class="search-form-field">
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
class="search-form-field"
|
||||
subscriptSizing="dynamic"
|
||||
style="width: 100%">
|
||||
<mat-label>Einrichtung suchen</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="text"
|
||||
placeholder="Einrichtung suchen, um deren Top-3 Autoren hinzuzufügen..."
|
||||
[value]="searchQuery()"
|
||||
(input)="onSearchInput($event)" />
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
@if (searchQuery()) {
|
||||
<button
|
||||
mat-icon-button
|
||||
|
||||
+2
-26
@@ -47,37 +47,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Autocomplete Search input */
|
||||
.autocomplete-search {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: #9ca3af;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
input {
|
||||
.search-form-field {
|
||||
width: 100%;
|
||||
padding: 0.6rem 0.6rem 0.6rem 2.2rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #d1d5db;
|
||||
font-size: 0.8125rem;
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||||
}
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,15 +7,18 @@
|
||||
|
||||
<!-- Autocomplete Search Input for Authors -->
|
||||
<div class="autocomplete-search">
|
||||
<mat-form-field appearance="outline" class="search-form-field">
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
class="search-form-field"
|
||||
subscriptSizing="dynamic"
|
||||
style="width: 100%">
|
||||
<mat-label>Autor vergleichen</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="text"
|
||||
placeholder="Autor suchen und hinzufügen..."
|
||||
[value]="searchQuery()"
|
||||
(input)="onSearchInput($event)" />
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
@if (searchQuery()) {
|
||||
<button
|
||||
mat-icon-button
|
||||
|
||||
@@ -54,38 +54,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Autocomplete Search input */
|
||||
.autocomplete-search {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: #9ca3af;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
input {
|
||||
.search-form-field {
|
||||
width: 100%;
|
||||
padding: 0.6rem 0.6rem 0.6rem 2.2rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #d1d5db;
|
||||
font-size: 0.8125rem;
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||||
}
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,9 +126,9 @@
|
||||
|
||||
.chips-flex {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
max-height: 104px;
|
||||
max-height: 140px;
|
||||
overflow-y: auto;
|
||||
padding-right: 4px;
|
||||
width: 100%;
|
||||
@@ -160,12 +136,12 @@
|
||||
}
|
||||
|
||||
.comparison-item {
|
||||
display: inline-flex;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 6px;
|
||||
padding: 0.35rem 0.6rem;
|
||||
padding: 0.4rem 0.65rem;
|
||||
gap: 8px;
|
||||
transition: all 0.2s ease;
|
||||
max-width: 100%;
|
||||
|
||||
@@ -24,15 +24,18 @@
|
||||
|
||||
<!-- Autocomplete Search Input -->
|
||||
<div class="autocomplete-search">
|
||||
<mat-form-field appearance="outline" class="search-form-field">
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
class="search-form-field"
|
||||
subscriptSizing="dynamic"
|
||||
style="width: 100%">
|
||||
<mat-label>Einrichtung vergleichen</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="text"
|
||||
placeholder="Einrichtung suchen und hinzufügen..."
|
||||
[value]="searchQuery()"
|
||||
(input)="onSearchInput($event)" />
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
@if (searchQuery()) {
|
||||
<button
|
||||
mat-icon-button
|
||||
|
||||
@@ -83,38 +83,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Autocomplete Search input */
|
||||
.autocomplete-search {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
.search-icon {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: #9ca3af;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
input {
|
||||
.search-form-field {
|
||||
width: 100%;
|
||||
padding: 0.6rem 0.6rem 0.6rem 2.2rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #d1d5db;
|
||||
font-size: 0.8125rem;
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:focus {
|
||||
border-color: #3b82f6;
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||||
}
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,9 +155,9 @@
|
||||
|
||||
.chips-flex {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
max-height: 104px;
|
||||
max-height: 140px;
|
||||
overflow-y: auto;
|
||||
padding-right: 4px;
|
||||
width: 100%;
|
||||
@@ -189,12 +165,12 @@
|
||||
}
|
||||
|
||||
.comparison-item {
|
||||
display: inline-flex;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 6px;
|
||||
padding: 0.35rem 0.6rem;
|
||||
padding: 0.4rem 0.65rem;
|
||||
gap: 8px;
|
||||
transition: all 0.2s ease;
|
||||
max-width: 100%;
|
||||
|
||||
@@ -3,15 +3,18 @@
|
||||
|
||||
<!-- Autocomplete-Suche für Länder/Kontinente -->
|
||||
<div class="autocomplete-search">
|
||||
<mat-form-field appearance="outline" class="search-form-field">
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
<mat-form-field
|
||||
appearance="outline"
|
||||
class="search-form-field"
|
||||
subscriptSizing="dynamic"
|
||||
style="width: 100%">
|
||||
<mat-label>Land oder Kontinent suchen</mat-label>
|
||||
<input
|
||||
matInput
|
||||
type="text"
|
||||
placeholder="Land oder Kontinent suchen..."
|
||||
[value]="locationQuery()"
|
||||
(input)="onSearchInput($event)" />
|
||||
<mat-icon matPrefix>search</mat-icon>
|
||||
@if (locationQuery()) {
|
||||
<button
|
||||
mat-icon-button
|
||||
|
||||
@@ -36,27 +36,13 @@
|
||||
width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.5rem 0.5rem 0.75rem;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #d1d5db;
|
||||
font-size: 0.8125rem;
|
||||
outline: none;
|
||||
box-sizing: border-box;
|
||||
line-height: normal;
|
||||
&:focus {
|
||||
border-color: #3b82f6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.comparison-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem;
|
||||
max-height: 104px;
|
||||
gap: 0.5rem;
|
||||
max-height: 140px;
|
||||
overflow-y: auto;
|
||||
padding-right: 4px;
|
||||
flex: 1;
|
||||
@@ -72,6 +58,67 @@
|
||||
}
|
||||
}
|
||||
|
||||
.comparison-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 6px;
|
||||
padding: 0.4rem 0.65rem;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
.item-name {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 180px;
|
||||
|
||||
mat-icon {
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.item-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 2px;
|
||||
border-radius: 3px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.15s ease;
|
||||
|
||||
mat-icon {
|
||||
font-size: 14px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
&.remove-btn:hover {
|
||||
color: #ef4444 !important;
|
||||
background: #fee2e2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.autocomplete-results {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
|
||||
Reference in New Issue
Block a user