mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 06:24:25 +01:00
fix: usage of resolveAsset
This commit is contained in:
@@ -71,7 +71,7 @@ const SideBar: Component = () => {
|
|||||||
<button class="pt-2" onClick={() => showAbout()}>
|
<button class="pt-2" onClick={() => showAbout()}>
|
||||||
<img
|
<img
|
||||||
class="h-8 w-8"
|
class="h-8 w-8"
|
||||||
src={resolveAsset('/images/rabbit_app_256.png')}
|
src={resolveAsset('images/rabbit_app_256.png')}
|
||||||
alt="About rabbit"
|
alt="About rabbit"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import NotificationColumn from '@/components/column/NotificationColumn';
|
|||||||
import PostsColumn from '@/components/column/PostsColumn';
|
import PostsColumn from '@/components/column/PostsColumn';
|
||||||
import ReactionsColumn from '@/components/column/ReactionsColumn';
|
import ReactionsColumn from '@/components/column/ReactionsColumn';
|
||||||
import RelaysColumn from '@/components/column/RelaysColumn';
|
import RelaysColumn from '@/components/column/RelaysColumn';
|
||||||
|
import SearchColumn from '@/components/column/SearchColumn';
|
||||||
import useConfig from '@/core/useConfig';
|
import useConfig from '@/core/useConfig';
|
||||||
|
|
||||||
const Columns = () => {
|
const Columns = () => {
|
||||||
@@ -63,6 +64,15 @@ const Columns = () => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Match>
|
</Match>
|
||||||
|
<Match when={column.columnType === 'Search' && column} keyed>
|
||||||
|
{(reactionsColumn) => (
|
||||||
|
<SearchColumn
|
||||||
|
column={reactionsColumn}
|
||||||
|
columnIndex={columnIndex()}
|
||||||
|
lastColumn={lastColumn()}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</Match>
|
||||||
</Switch>
|
</Switch>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const About: Component<AboutProps> = (props) => {
|
|||||||
<BasicModal onClose={props.onClose}>
|
<BasicModal onClose={props.onClose}>
|
||||||
<div class="p-8">
|
<div class="p-8">
|
||||||
<div class="flex flex-col items-center pt-8">
|
<div class="flex flex-col items-center pt-8">
|
||||||
<img src={resolveAsset('/images/rabbit_app_256.png')} alt="Logo" width="64" height="64" />
|
<img src={resolveAsset('images/rabbit_app_256.png')} alt="Logo" width="64" height="64" />
|
||||||
|
|
||||||
<h1 class="my-4">
|
<h1 class="my-4">
|
||||||
Rabbit <span id="app-version">v{packageInfo()?.self?.version}</span>
|
Rabbit <span id="app-version">v{packageInfo()?.self?.version}</span>
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const Hello: Component = () => {
|
|||||||
return (
|
return (
|
||||||
<div class="mx-auto flex max-w-[640px] flex-col items-center p-4 text-stone-600">
|
<div class="mx-auto flex max-w-[640px] flex-col items-center p-4 text-stone-600">
|
||||||
<div class="flex flex-col items-center gap-4 rounded bg-white p-4">
|
<div class="flex flex-col items-center gap-4 rounded bg-white p-4">
|
||||||
<img src={resolveAsset('/images/rabbit_256.png')} width="96" alt="logo" height="96" />
|
<img src={resolveAsset('images/rabbit_256.png')} width="96" alt="logo" height="96" />
|
||||||
<h1 class="text-5xl font-black text-rose-300">Rabbit</h1>
|
<h1 class="text-5xl font-black text-rose-300">Rabbit</h1>
|
||||||
<div>Rabbit is a Web client for Nostr.</div>
|
<div>Rabbit is a Web client for Nostr.</div>
|
||||||
<p class="text-center">
|
<p class="text-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user