mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
adjust ui
This commit is contained in:
1 parent
7e8375aee8
commit
f5dad673de
12 files changed
+172
-73
No files matched your search
@@ -90,7 +90,7 @@
|
||||
class="cursor-pointer flex items-center"
|
||||
:class="{ 'pr-0.5': isMobile }"
|
||||
style="height: 24px"
|
||||
@focus="isSettingsFocus = true"
|
||||
@focus="onSettingsFocus"
|
||||
@blur="maybeBlurSettings"
|
||||
>
|
||||
<IconDotsVertical class="w-5 h-5" />
|
||||
@@ -423,6 +423,19 @@ export default {
|
||||
this.isSettingsFocus = false
|
||||
}
|
||||
},
|
||||
onSettingsFocus () {
|
||||
this.isSettingsFocus = true
|
||||
|
||||
if (this.isMobile) {
|
||||
this.$nextTick(() => {
|
||||
const dropdown = this.$refs.settingsDropdown
|
||||
const padding = parseFloat(getComputedStyle(dropdown).paddingLeft) + 6
|
||||
const left = dropdown.parentElement.getBoundingClientRect().right - dropdown.offsetWidth - padding
|
||||
|
||||
dropdown.style.right = left < 0 ? `${left}px` : ''
|
||||
})
|
||||
}
|
||||
},
|
||||
onNameFocus (e) {
|
||||
this.selectedAreasRef.value = [this.area]
|
||||
|
||||
|
||||
Reference in new issue
Block a user