refactor: modal dialog (#277)

This commit is contained in:
Ayaka Rizumu 2022-12-02 15:02:44 +08:00 committed by GitHub
parent 585b9e0229
commit feb8872f5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 271 additions and 192 deletions

View file

@ -21,7 +21,7 @@ onMounted(() => {
</script>
<template>
<form text-center justify-center items-center w-150 py6 flex="~ col gap-3" @submit.prevent="oauth">
<form text-center justify-center items-center max-w-150 py6 flex="~ col gap-3" @submit.prevent="oauth">
<div flex="~ center" mb2>
<img src="/logo.svg" w-12 h-12 mxa alt="logo">
<div text-3xl>
@ -31,7 +31,7 @@ onMounted(() => {
<div>{{ $t('user.server_address_label') }}</div>
<div flex bg-gray:10 px4 py2 mxa rounded border="~ base" items-center font-mono focus:outline-none focus:ring="2 primary inset">
<span text-secondary-light mr1>https://</span>
<input ref="input" v-model="server" outline-none bg-transparent @input="handleInput">
<input ref="input" v-model="server" outline-none bg-transparent w-full max-w-50 @input="handleInput">
</div>
<div text-secondary text-sm flex>
<div i-ri:lightbulb-line mr-1 />