From 79596ab375b796711ff910f1aacdff54e1698db1 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Fri, 29 Nov 2019 14:00:33 +0100 Subject: [PATCH] updated story --- .../SearchInput/SearchInput.story.js | 14 +- webapp/components/SearchInput/SearchInput.vue | 457 ++++++++++-------- 2 files changed, 260 insertions(+), 211 deletions(-) diff --git a/webapp/components/SearchInput/SearchInput.story.js b/webapp/components/SearchInput/SearchInput.story.js index c65241b30..9a2a4f2ae 100644 --- a/webapp/components/SearchInput/SearchInput.story.js +++ b/webapp/components/SearchInput/SearchInput.story.js @@ -6,9 +6,10 @@ import helpers from '~/storybook/helpers' helpers.init() export const results = [ + /* { heading: 'Contributions' - }, + },*/ { id: 'de100841-2336-4b01-a574-f1bd2c0b262a', searchType: 'Contributions', @@ -65,12 +66,14 @@ export const results = [ slug: 'louie', }, }, - { +/* { heading: 'Users' - }, + },*/ { id: 'u1', searchType: 'Users', + avatar: + 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg', name: 'Peter Lustig', label: 'Peter Lustig', slug: 'peter-lustig', @@ -78,7 +81,8 @@ export const results = [ { id: 'cdbca762-0632-4564-b646-415a0c42d8b8', searchType: 'Users', - firstType: false, + avatar: + 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg', name: 'Herbert Schultz', label: 'Herbert Schultz', slug: 'herbert-schultz', @@ -86,6 +90,8 @@ export const results = [ { id: 'u2', searchType: 'Users', + avatar: + 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/db/dbc9e03ebcc384b920c31542af2d27dd8eea9dc2_full.jpg', name: 'Bob der Baumeister', label: 'Bob der Baumeister', slug: 'bob-der-baumeister', diff --git a/webapp/components/SearchInput/SearchInput.vue b/webapp/components/SearchInput/SearchInput.vue index 0d73485c3..8d914e328 100644 --- a/webapp/components/SearchInput/SearchInput.vue +++ b/webapp/components/SearchInput/SearchInput.vue @@ -36,30 +36,43 @@ @input.native="handleInput" @click.capture.native="isOpen = true" > -