-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(glyphs): virtual list glyph pack placeholder images (#700)
- Loading branch information
Showing
26 changed files
with
199 additions
and
221 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<div | ||
<img | ||
:width="`${width}px`" | ||
:height="`${height}px`" | ||
class="glyph-item" | ||
:style="getStyle()" | ||
:src="getSrc" | ||
@mouseover="mouseOver" | ||
@mouseleave="mouseLeave" | ||
v-on="sendOnClick ? {click: addGlyph} : {}" | ||
></div> | ||
@load="setLoaded" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
.glyph-item { | ||
cursor: pointer; | ||
background: transparent; | ||
background-position: center center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
border-style: none; | ||
} | ||
cursor: pointer; | ||
aspect-ratio: 1/1; | ||
object-fit: cover; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
components/views/chat/enhancers/glyphs/mostUsed/MostUsed.html
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
components/views/chat/enhancers/glyphs/mostUsed/MostUsed.less
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
components/views/chat/enhancers/glyphs/mostUsed/MostUsed.vue
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<div id="glyphs-nav" class="glyph-list-box"> | ||
<div class="account-list"> | ||
<div class="timer" @click="() => {$emit('navSelected', '')}"> | ||
<clock-icon class="control-icon" size="1x" /> | ||
</div> | ||
<div class="timer"> | ||
<clock-icon class="control-icon" size="1x" /> | ||
</div> | ||
<div class="pack-list"> | ||
<div v-for="pack in $mock.glyphs" @click="$emit('navSelected', pack.name)"> | ||
<div v-for="pack in $mock.glyphs"> | ||
<EnhancersGlyphsItem | ||
:key="pack.id" | ||
:src="pack.stickerURLs[0]" | ||
:pack="pack" | ||
></EnhancersGlyphsItem> | ||
:height="32" | ||
:width="32" | ||
:sendOnClick="true" | ||
/> | ||
</div> | ||
</div> | ||
<div class="market-place" v-on:click="toggleMarketPlace"> | ||
<div class="market-place" @click="toggleMarketPlace"> | ||
<shopping-bag-icon class="control-icon" size="1x" /> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ | |
:src="glyph" | ||
:pack="pack" | ||
:sendOnClick="true" | ||
></EnhancersGlyphsItem> | ||
/> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<EnhancersGlyphsPack :key="source.id" :pack="source" /> | ||
</template> | ||
|
||
<script lang="ts"> | ||
export default { | ||
name: 'PackGroup', | ||
props: { | ||
index: { | ||
type: Number, | ||
default: 0, | ||
}, | ||
source: { | ||
type: Object, | ||
default() { | ||
return {} | ||
}, | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.glyph { | ||
width: 192px; | ||
height: 192px; | ||
aspect-ratio: 1/1; | ||
object-fit: cover; | ||
cursor: pointer; | ||
} | ||
|
||
|
Oops, something went wrong.