mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Circumventing autofill by using a textarea rather than an input type=text
This commit is contained in:
parent
1fb53565ef
commit
e3d5ca34c8
1 changed files with 9 additions and 0 deletions
|
@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
/* Using a textarea for this element, to circumvent autofill */
|
||||
.mx_ChatInviteDialog_input,
|
||||
.mx_ChatInviteDialog_input:focus {
|
||||
line-height: 34px;
|
||||
|
@ -22,6 +23,13 @@ limitations under the License.
|
|||
padding-right: 12px;
|
||||
margin: 0 !important;
|
||||
border: 0 !important;
|
||||
outline: 0 !important;
|
||||
width: 1000%; /* Pretend that this is an "input type=text" */
|
||||
resize: none;
|
||||
overflow: hidden;
|
||||
vertical-align: middle;
|
||||
box-sizing: border-box;
|
||||
word-wrap: nowrap;
|
||||
}
|
||||
|
||||
.mx_ChatInviteDialog_inputContainer {
|
||||
|
@ -31,6 +39,7 @@ limitations under the License.
|
|||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
padding-top: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mx_ChatInviteDialog_queryList {
|
||||
|
|
Loading…
Reference in a new issue