diff options
| author | Absturztaube <me@absturztaube.ch> | 2019-12-15 17:58:37 +0100 |
|---|---|---|
| committer | Absturztaube <me@absturztaube.ch> | 2019-12-15 17:58:37 +0100 |
| commit | 32d7a49b9d02bfa6c6e997f4d6e923752b062a90 (patch) | |
| tree | 56cd2a8a65c66470cd4b9000a6ee9759a498deb9 | |
| parent | 7e3a4fa8ec183f8e04804938d713953aed6bec66 (diff) | |
use flex for stickers
| -rw-r--r-- | src/components/sticker_picker/sticker_picker.vue | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/components/sticker_picker/sticker_picker.vue b/src/components/sticker_picker/sticker_picker.vue index 7d6fdc24..3863908a 100644 --- a/src/components/sticker_picker/sticker_picker.vue +++ b/src/components/sticker_picker/sticker_picker.vue @@ -36,16 +36,20 @@ .sticker-picker { width: 100%; - position: relative; .contents { min-height: 250px; .sticker-picker-content { + display: flex; + flex-wrap: wrap; + padding: 0 4px; .sticker { - display: inline-block; - width: 20%; - height: 20%; + display: flex; + flex: 1 1 auto; + margin: 4px; + width: 56px; + height: 56px; img { - width: 100%; + height: 100%; &:hover { filter: drop-shadow(0 0 5px var(--link, $fallback--link)); } |
