mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-10 21:21:56 +00:00
4.2.5
* Fixed: Words being highlighted as mentions incorrectly when they start with the user's name. * API Changed: New `<react-link>` and `<aspect>` global Vue components.
This commit is contained in:
parent
8582626269
commit
4e0539103a
5 changed files with 38 additions and 3 deletions
12
src/std-components/aspect.vue
Normal file
12
src/std-components/aspect.vue
Normal file
|
@ -0,0 +1,12 @@
|
|||
<template functional>
|
||||
<div
|
||||
:class="`tw-aspect--align-${props.align||'top'}`"
|
||||
class="tw-aspect"
|
||||
>
|
||||
<div
|
||||
:style="{paddingBottom: (100 * (1 / (props.ratio || 1))) + '%'}"
|
||||
class="tw-aspect__spacer"
|
||||
/>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
13
src/std-components/react-link.vue
Normal file
13
src/std-components/react-link.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<template>
|
||||
<a :href="href" @click="reactNavigate(href, $event)">
|
||||
<slot />
|
||||
</a>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
props: ['href']
|
||||
}
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue