From fb0cf6454982a371e68b22e29b0374507425242d Mon Sep 17 00:00:00 2001 From: Xiaofeng An Date: Fri, 8 Feb 2019 10:49:14 -0500 Subject: #255 - make AutoCompleteInput component --- .../autocomplete_input/autocomplete_input.vue | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/components/autocomplete_input/autocomplete_input.vue (limited to 'src/components/autocomplete_input/autocomplete_input.vue') diff --git a/src/components/autocomplete_input/autocomplete_input.vue b/src/components/autocomplete_input/autocomplete_input.vue new file mode 100644 index 00000000..1c049891 --- /dev/null +++ b/src/components/autocomplete_input/autocomplete_input.vue @@ -0,0 +1,34 @@ + + + -- cgit v1.2.3-70-g09d2 From 128dcc637edb5550168423941171f5b567365b7c Mon Sep 17 00:00:00 2001 From: Xiaofeng An Date: Fri, 8 Feb 2019 11:01:12 -0500 Subject: make name field auto-complete --- .../autocomplete_input/autocomplete_input.vue | 19 +++++++++++++++++++ src/components/user_settings/user_settings.vue | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) (limited to 'src/components/autocomplete_input/autocomplete_input.vue') diff --git a/src/components/autocomplete_input/autocomplete_input.vue b/src/components/autocomplete_input/autocomplete_input.vue index 1c049891..d3bda597 100644 --- a/src/components/autocomplete_input/autocomplete_input.vue +++ b/src/components/autocomplete_input/autocomplete_input.vue @@ -1,6 +1,7 @@ + + diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 18c2d2b2..4c3eb159 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -233,52 +233,5 @@ cursor: pointer; z-index: 4; } - - .autocomplete-panel { - margin: 0 0.5em 0 0.5em; - border-radius: $fallback--tooltipRadius; - border-radius: var(--tooltipRadius, $fallback--tooltipRadius); - position: absolute; - z-index: 1; - box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5); - // this doesn't match original but i don't care, making it uniform. - box-shadow: var(--popupShadow); - min-width: 75%; - background: $fallback--bg; - background: var(--bg, $fallback--bg); - color: $fallback--lightText; - color: var(--lightText, $fallback--lightText); - } - - .autocomplete { - cursor: pointer; - padding: 0.2em 0.4em 0.2em 0.4em; - border-bottom: 1px solid rgba(0, 0, 0, 0.4); - display: flex; - - img { - width: 24px; - height: 24px; - border-radius: $fallback--avatarRadius; - border-radius: var(--avatarRadius, $fallback--avatarRadius); - object-fit: contain; - } - - span { - line-height: 24px; - margin: 0 0.1em 0 0.2em; - } - - small { - margin-left: .5em; - color: $fallback--faint; - color: var(--faint, $fallback--faint); - } - - &.highlighted { - background-color: $fallback--fg; - background-color: var(--lightBg, $fallback--fg); - } - } } -- cgit v1.2.3-70-g09d2 From e8dc019afd31981295fbf79637727fb4ce34a072 Mon Sep 17 00:00:00 2001 From: Xiaofeng An Date: Fri, 8 Feb 2019 11:10:47 -0500 Subject: remove rows attribute from input --- src/components/autocomplete_input/autocomplete_input.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/components/autocomplete_input/autocomplete_input.vue') diff --git a/src/components/autocomplete_input/autocomplete_input.vue b/src/components/autocomplete_input/autocomplete_input.vue index 44324e23..5f285af0 100644 --- a/src/components/autocomplete_input/autocomplete_input.vue +++ b/src/components/autocomplete_input/autocomplete_input.vue @@ -3,11 +3,11 @@