Skip to content

Commit ae9c4c5

Browse files
bors[bot]mdubus
andauthored
Merge #170
170: Add margin right to the searchbox r=bidoubiwa a=mdubus Closes #169 ## What's inside ? - Addition of margin-right to the searchbox - Addition of a menu in the playground to see the changes and impact ## Screenshots Before: ![before](https://user-images.githubusercontent.com/30866152/124610711-06b30b80-de71-11eb-8cdc-45aa839367bb.png) After: ![after](https://user-images.githubusercontent.com/30866152/124610747-0dda1980-de71-11eb-8494-5172d1dc0018.png) Co-authored-by: Morgane Dubus <[email protected]>
2 parents 52a9e71 + 2b3afee commit ae9c4c5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

MeiliSearchBox.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ export default {
8383
@require './styles/palette.styl'
8484
8585
.meilisearch-search-wrapper
86-
& > span
86+
display: inline-block;
87+
position: relative;
88+
margin-right 1rem
89+
& > div > span
8790
vertical-align middle
8891
.dsb-cursor
8992
background rgba($accentColor, 0.05)
9093
.meilisearch-autocomplete
91-
line-height 2
9294
// Searchbox
9395
input
9496
cursor text

playground/.vuepress/config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ module.exports = {
22
title: 'Welcome to the Playground!',
33
theme: 'default-prefers-color-scheme',
44
themeConfig: {
5-
prefersTheme: 'dark'
5+
prefersTheme: 'dark',
6+
nav: [
7+
{ text: 'Learn', link: '/learn/' },
8+
{ text: 'Create', link: '/create/how_to/' },
9+
{ text: 'Reference', link: '/reference/' }
10+
]
611
},
712
plugins: [
813
[

0 commit comments

Comments
 (0)