mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-25 11:19:59 +01:00
! Fix clear text button style
This commit is contained in:
parent
a94f70766a
commit
44ed286848
@ -51,15 +51,23 @@
|
||||
inset-inline-start: 0;
|
||||
/* To be higher than `.inputWrapper` */
|
||||
z-index: 1;
|
||||
|
||||
margin-block: 0;
|
||||
margin-inline: 3px;
|
||||
padding: 10px;
|
||||
border-radius: 100%;
|
||||
|
||||
color: var(--primary-text-color);
|
||||
opacity: 0;
|
||||
|
||||
transition: background 0.2s ease-in;
|
||||
}
|
||||
|
||||
.clearInputTextButton.verticallyCentered {
|
||||
inset-block: 0;
|
||||
margin-block: auto;
|
||||
}
|
||||
|
||||
.clearInputTextButton.visible:hover {
|
||||
background-color: var(--side-nav-hover-color);
|
||||
color: var(--side-nav-hover-text-color);
|
||||
|
@ -38,6 +38,10 @@ export default defineComponent({
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
clearInputTextButtonVerticallyCentered: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
showLabel: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
@ -61,7 +65,7 @@ export default defineComponent({
|
||||
tooltip: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
},
|
||||
data: function () {
|
||||
let actionIcon = ['fas', 'search']
|
||||
|
@ -29,7 +29,8 @@
|
||||
:icon="['fas', 'times-circle']"
|
||||
class="clearInputTextButton"
|
||||
:class="{
|
||||
visible: inputDataPresent
|
||||
visible: inputDataPresent,
|
||||
verticallyCentered: clearInputTextButtonVerticallyCentered,
|
||||
}"
|
||||
tabindex="0"
|
||||
role="button"
|
||||
|
@ -24,6 +24,7 @@
|
||||
ref="searchBar"
|
||||
:placeholder="$t('User Playlists.Search bar placeholder')"
|
||||
:show-clear-text-button="true"
|
||||
:clear-input-text-button-vertically-centered="true"
|
||||
:show-action-button="false"
|
||||
@input="(input) => query = input"
|
||||
@clear="query = ''"
|
||||
|
Loading…
Reference in New Issue
Block a user