fix: 插件/主题卡片网格改用内联 grid(auto-fill 多列),修复自定义视图 Tailwind 类未编译导致单列的问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<x-filament-panels::page>
|
<x-filament-panels::page>
|
||||||
<x-filament::section heading="已安装插件">
|
<x-filament::section heading="已安装插件">
|
||||||
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
<div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem">
|
||||||
@forelse($this->plugins as $plugin)
|
@forelse($this->plugins as $plugin)
|
||||||
<x-filament::section :compact="true">
|
<x-filament::section :compact="true">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<x-filament::button color="gray" wire:click="loadMarket">刷新市场</x-filament::button>
|
<x-filament::button color="gray" wire:click="loadMarket">刷新市场</x-filament::button>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
<div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem">
|
||||||
@forelse($marketItems as $index => $item)
|
@forelse($marketItems as $index => $item)
|
||||||
<x-filament::section :compact="true">
|
<x-filament::section :compact="true">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<x-filament-panels::page>
|
<x-filament-panels::page>
|
||||||
<x-filament::section heading="主题列表">
|
<x-filament::section heading="主题列表">
|
||||||
<div class="grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
|
<div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.25rem">
|
||||||
@forelse($this->themes as $theme)
|
@forelse($this->themes as $theme)
|
||||||
<x-filament::section :compact="true" class="!p-0">
|
<x-filament::section :compact="true" class="!p-0">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
{{-- 主题预览图 --}}
|
{{-- 主题预览图 --}}
|
||||||
<div class="relative aspect-[4/3] overflow-hidden rounded-t-lg bg-gray-100 dark:bg-white/5">
|
<div style="position:relative;aspect-ratio:4/3;overflow:hidden;border-top-left-radius:0.75rem;border-top-right-radius:0.75rem;background:rgba(128,128,128,.08)">
|
||||||
@if($theme['screenshot'])
|
@if($theme['screenshot'])
|
||||||
<img src="{{ theme('asset', $theme['screenshot'], $theme['name']) }}"
|
<img src="{{ theme('asset', $theme['screenshot'], $theme['name']) }}"
|
||||||
alt="{{ $theme['title'] }} 预览"
|
alt="{{ $theme['title'] }} 预览"
|
||||||
class="h-full w-full object-cover object-top transition-transform duration-300 hover:scale-105">
|
style="width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .3s" onmouseover="this.style.transform='scale(1.05)'" onmouseout="this.style.transform='scale(1)'">
|
||||||
@else
|
@else
|
||||||
<div class="flex h-full items-center justify-center text-gray-400">
|
<div class="flex h-full items-center justify-center text-gray-400">
|
||||||
<x-filament::icon icon="heroicon-o-photo" class="h-10 w-10" />
|
<x-filament::icon icon="heroicon-o-photo" class="h-10 w-10" />
|
||||||
|
|||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
fake-jpg
|
||||||
Reference in New Issue
Block a user