diff --git a/easytier-web/frontend-lib/src/components/UrlInput.vue b/easytier-web/frontend-lib/src/components/UrlInput.vue index 494a1e67..060cfaa6 100644 --- a/easytier-web/frontend-lib/src/components/UrlInput.vue +++ b/easytier-web/frontend-lib/src/components/UrlInput.vue @@ -2,7 +2,7 @@ import { AutoComplete, Button, Dialog, InputNumber, InputText } from 'primevue' import InputGroup from 'primevue/inputgroup' import InputGroupAddon from 'primevue/inputgroupaddon' -import { computed, onMounted, onUnmounted, ref, watch } from 'vue' +import { computed, ref, watch } from 'vue' import { useI18n } from 'vue-i18n' const props = defineProps<{ @@ -13,25 +13,8 @@ const props = defineProps<{ const { t } = useI18n() const url = defineModel({ required: true }) const editing = ref(false) -const container = ref(null) -const internalCompact = ref(false) const hostFocused = ref(false) -onMounted(() => { - if (container.value) { - const observer = new ResizeObserver(entries => { - for (const entry of entries) { - internalCompact.value = entry.contentRect.width < 400 - } - }) - observer.observe(container.value) - - onUnmounted(() => { - observer.disconnect() - }) - } -}) - const parseUrl = (val: string | null | undefined): { proto: string; host: string; port: number | null } => { const getValidPort = (portStr: string, proto: string) => { const p = parseInt(portStr) @@ -169,28 +152,30 @@ const onProtoChange = (newProto: string) => {