Skip to content

Commit

Permalink
fix(styles): enlarge SymbolInput
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Nov 13, 2021
1 parent b240770 commit 99f0fbc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
6 changes: 6 additions & 0 deletions src/components/EmojiPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export default {
padding: 3px;
cursor: pointer;
border-radius: 4px;
text-align: center;
font-size: 20px;
}
.emoji-picker-item:hover {
Expand All @@ -71,4 +73,8 @@ export default {
.emoji-picker-container .el-tabs__header {
margin-top: 0px !important;
}
.emoji-picker-container .el-tabs__item {
font-size: 20px;
}
</style>
10 changes: 7 additions & 3 deletions src/components/EmoticonPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,23 @@ export default {
.emoticon-picker-header {
display: flex;
align-items: center;
justify-content: space-between;
justify-content: flex-start;
margin-bottom: 10px;
}
.emoticon-picker-header span{
display: inline-block;
margin-left: 0.5em;
}
.emoticon-picker-header > span {
display: inline-block;
width: 40%;
text-align: center;
cursor: pointer;
}
.emoticon-picker-item {
padding: 5px 8px;
padding: 8px 10px;
display: inline-block;
cursor: pointer;
border-radius: 4px;
Expand Down
6 changes: 3 additions & 3 deletions src/components/SymbolInput.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<div class="symbol-input-container">
<el-popover placement="bottom" width="200" trigger="focus">
<el-popover placement="bottom" width="300" trigger="focus">
<div class="emoji-input-popover">
<el-tabs value="first">
<el-tab-pane label="(//▽//)" name="first">
<el-tab-pane label="w(゚Д゚)w" name="first">
<emoticon-picker @input="handleInput" />
</el-tab-pane>
<el-tab-pane label="😀 🍉 🌈" name="second">
<el-tab-pane label="Emoji 😆" name="second">
<emoji-picker @input="handleInput" />
</el-tab-pane>
</el-tabs>
Expand Down
7 changes: 5 additions & 2 deletions src/pages/Story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default {
options: [
{ value: "color", label: "Color 🌈" },
{ value: "emoji", label: "Emoji 😆" },
{ value: "emoticon", label: "Emoticon w(゚Д゚)w" },
{ value: "emoticon", label: "w(゚Д゚)w" },
],
selectedValue: "color",
emojis,
Expand Down Expand Up @@ -298,7 +298,6 @@ export default {
.story-emoji-container {
display: grid;
grid-template-columns: repeat(24, 1fr);
margin-bottom: 2em;
}
.story-emoji-container span {
Expand Down Expand Up @@ -361,4 +360,8 @@ export default {
display: inline-block;
margin: 0.5em 0;
}
.story-body {
margin-bottom: 2.5em;
}
</style>

0 comments on commit 99f0fbc

Please sign in to comment.