Fix max zoom, + format
This commit is contained in:
@@ -22,7 +22,7 @@ export const Modal = ({
|
|||||||
return (
|
return (
|
||||||
<m.div className={`fixed inset-0 z-30 ${darkMode ? 'dark' : ''}`}>
|
<m.div className={`fixed inset-0 z-30 ${darkMode ? 'dark' : ''}`}>
|
||||||
<m.div
|
<m.div
|
||||||
className="fixed w-full h-full backdrop-blur-sm backdrop-filter"
|
className="fixed h-full w-full backdrop-blur-sm backdrop-filter"
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
/>
|
/>
|
||||||
<m.div className="text-center ">
|
<m.div className="text-center ">
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const Layout = ({
|
|||||||
return (
|
return (
|
||||||
<div className="flex w-full bg-gray-100 dark:bg-secondaryDark md:overflow-hidden md:shadow-xl">
|
<div className="flex w-full bg-gray-100 dark:bg-secondaryDark md:overflow-hidden md:shadow-xl">
|
||||||
<Sidebar>
|
<Sidebar>
|
||||||
<div className="flex gap-2 p-2 border-b border-gray-300 dark:border-gray-600">
|
<div className="flex gap-2 border-b border-gray-300 p-2 dark:border-gray-600">
|
||||||
<IconButton icon={icon} />
|
<IconButton icon={icon} />
|
||||||
<div className="my-auto text-lg font-medium dark:text-white">
|
<div className="my-auto text-lg font-medium dark:text-white">
|
||||||
{title}
|
{title}
|
||||||
|
|||||||
@@ -21,20 +21,20 @@ export const Info = (): JSX.Element => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col flex-grow w-full gap-4 p-4 select-none">
|
<div className="flex w-full flex-grow select-none flex-col gap-4 p-4">
|
||||||
<m.div
|
<m.div
|
||||||
whileHover={{ scale: 1.01 }}
|
whileHover={{ scale: 1.01 }}
|
||||||
className="flex flex-col w-full gap-4 p-8 rounded-md shadow-md dark:bg-primaryDark"
|
className="flex w-full flex-col gap-4 rounded-md p-8 shadow-md dark:bg-primaryDark"
|
||||||
>
|
>
|
||||||
<div className="m-auto">
|
<div className="m-auto">
|
||||||
<Hashicon value={hardwareInfo.myNodeNum.toString()} size={180} />
|
<Hashicon value={hardwareInfo.myNodeNum.toString()} size={180} />
|
||||||
</div>
|
</div>
|
||||||
<div className="text-lg font-medium text-center dark:text-white">
|
<div className="text-center text-lg font-medium dark:text-white">
|
||||||
{node?.user?.longName || 'Unknown'}
|
{node?.user?.longName || 'Unknown'}
|
||||||
</div>
|
</div>
|
||||||
</m.div>
|
</m.div>
|
||||||
|
|
||||||
<div className="flex-grow p-8 rounded-md shadow-md dark:bg-primaryDark">
|
<div className="flex-grow rounded-md p-8 shadow-md dark:bg-primaryDark">
|
||||||
<JSONPretty className="overflow-y-auto" data={hardwareInfo} />
|
<JSONPretty className="overflow-y-auto" data={hardwareInfo} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export const MapStyles: MapStyleType = {
|
|||||||
tiles: [
|
tiles: [
|
||||||
'https://clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
|
'https://clarity.maptiles.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
|
||||||
],
|
],
|
||||||
|
maxzoom: 17,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export const MessageBar = ({ channelIndex }: MessageBarProps): JSX.Element => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto flex w-full space-x-2 bg-gray-50 p-4 text-gray-500 dark:bg-transparent dark:text-gray-400">
|
<div className="mx-auto flex w-full space-x-2 bg-gray-50 p-3 text-gray-500 dark:bg-transparent dark:text-gray-400">
|
||||||
<div className="mx-auto flex w-full max-w-4xl">
|
<div className="mx-auto flex w-full max-w-4xl">
|
||||||
<form
|
<form
|
||||||
className="flex w-full space-x-2"
|
className="flex w-full space-x-2"
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export const Messages = (): JSX.Element => {
|
|||||||
}}
|
}}
|
||||||
actions={<IconButton icon={<FiSettings />} />}
|
actions={<IconButton icon={<FiSettings />} />}
|
||||||
>
|
>
|
||||||
<div className="flex w-8 h-8 bg-gray-200 rounded-full dark:bg-primaryDark dark:text-white">
|
<div className="flex h-8 w-8 rounded-full bg-gray-200 dark:bg-primaryDark dark:text-white">
|
||||||
<div className="m-auto">
|
<div className="m-auto">
|
||||||
{channel.channel.role === Protobuf.Channel_Role.PRIMARY ? (
|
{channel.channel.role === Protobuf.Channel_Role.PRIMARY ? (
|
||||||
<MdPublic />
|
<MdPublic />
|
||||||
@@ -64,7 +64,7 @@ export const Messages = (): JSX.Element => {
|
|||||||
</div>
|
</div>
|
||||||
{channel.messages.length ? (
|
{channel.messages.length ? (
|
||||||
<>
|
<>
|
||||||
<div className="flex h-8 mx-2">
|
<div className="mx-2 flex h-8">
|
||||||
{[
|
{[
|
||||||
...new Set(
|
...new Set(
|
||||||
channel.messages.flatMap(({ message }) => [
|
channel.messages.flatMap(({ message }) => [
|
||||||
@@ -107,11 +107,11 @@ export const Messages = (): JSX.Element => {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col w-full">
|
<div className="flex w-full flex-col">
|
||||||
<div className="flex justify-between w-full px-2 border-b border-gray-300 dark:border-gray-600 dark:text-gray-300">
|
<div className="flex w-full justify-between border-b border-gray-300 px-2 dark:border-gray-600 dark:text-gray-300">
|
||||||
<div className="flex py-2 my-auto text-sm">
|
<div className="my-auto flex gap-2 py-2 text-sm">
|
||||||
<IconButton icon={<FiHash />} />
|
<IconButton icon={<FiHash className="h-4 w-4" />} />
|
||||||
<div>
|
<div className="my-auto">
|
||||||
{channels[channelIndex]?.channel.settings?.name.length
|
{channels[channelIndex]?.channel.settings?.name.length
|
||||||
? channels[channelIndex]?.channel.settings?.name
|
? channels[channelIndex]?.channel.settings?.name
|
||||||
: channels[channelIndex]?.channel.role ===
|
: channels[channelIndex]?.channel.role ===
|
||||||
@@ -123,7 +123,7 @@ export const Messages = (): JSX.Element => {
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
ref={chatRef}
|
ref={chatRef}
|
||||||
className="flex flex-col flex-grow pb-6 space-y-2 overflow-y-auto bg-white border-b border-gray-300 dark:border-gray-600 dark:bg-secondaryDark"
|
className="flex flex-grow flex-col space-y-2 overflow-y-auto border-b border-gray-300 bg-white pb-6 dark:border-gray-600 dark:bg-secondaryDark"
|
||||||
>
|
>
|
||||||
<div className="mt-auto">
|
<div className="mt-auto">
|
||||||
{channels[channelIndex]?.messages.map((message, index) => (
|
{channels[channelIndex]?.messages.map((message, index) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user