mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
review: apply suggestions
Co-Authored-By: Alina Beck <alina.beck@mail.com>
This commit is contained in:
parent
72dfeb3983
commit
38233da6d0
@ -143,8 +143,12 @@ export default {
|
||||
color: $text-color-soft;
|
||||
}
|
||||
|
||||
.spacer-x-small {
|
||||
margin: $space-x-small 0;
|
||||
}
|
||||
> :nth-child(n):not(:last-child) {
|
||||
margin-bottom: $space-small;
|
||||
}
|
||||
|
||||
.user-teaser {
|
||||
margin-bottom: $space-x-small;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -7,12 +7,8 @@ export default ({ app }) => {
|
||||
// Focus the element
|
||||
Vue.nextTick(() => {
|
||||
if (binding.value !== false) {
|
||||
let target = el
|
||||
const isInput = target instanceof HTMLInputElement
|
||||
if (!isInput) {
|
||||
target = el.querySelector('input')
|
||||
}
|
||||
if (target && typeof target.focus === 'function') {
|
||||
const target = el instanceof HTMLInputElement ? el : el.querySelector('input')
|
||||
if (target) {
|
||||
target.focus()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user