mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
contain results in flexbox and implement custom Uno classes
This commit is contained in:
parent
f61bcf5156
commit
f621251a42
4 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="flex flex-col flex-justify-between">
|
||||
<router-link :to="props.item.url">
|
||||
<div class="flex justify-center h-30">
|
||||
<div class="flex justify-center h-10-rem mb-4">
|
||||
<img class="aspect-square rounded-full" :src="props.item.thumbnail" loading="lazy" />
|
||||
</div>
|
||||
<p>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="flex flex-col flex-justify-between">
|
||||
<router-link :to="props.item.url">
|
||||
<div class="relative">
|
||||
<img class="w-full" :src="props.item.thumbnail" loading="lazy" />
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div v-if="showVideo">
|
||||
<div class="flex flex-col flex-justify-between" v-if="showVideo">
|
||||
<router-link
|
||||
class="focus:underline hover:underline inline-block w-full"
|
||||
:to="{
|
||||
|
|
|
@ -8,6 +8,7 @@ import presetWebFonts from "@unocss/preset-web-fonts";
|
|||
|
||||
export default defineConfig({
|
||||
transformers: [transformerDirective(), transformerVariantGroup()],
|
||||
rules: [[/^h-([\.\d]+)-rem$/, ([_, num]) => ({ height: `${num}rem` })]],
|
||||
presets: [
|
||||
presetUno({
|
||||
dark: "media",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue