Skip to content

Commit

Permalink
fix: some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
songkeys committed Sep 27, 2022
1 parent 8ed4022 commit fccf004
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
14 changes: 4 additions & 10 deletions components/common/NewUserGuide/index.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
import { WalletCharacterNewHref } from "@/utils/url";
import { getCurrentAddress } from "@/utils/wallet/provider";
import { Space, Text, Button } from "@mantine/core";
import { closeModal, openModal } from "@mantine/modals";
import { closeAllModals, closeModal, openModal } from "@mantine/modals";
import Link from "next/link";
import Image from "@/components/common/Image";
import Tooltip from "@/components/common/Tooltip";
import { openBorderlessModal } from "../Modal";

export function openConnectWalletHintModel() {
const id = "connect-wallet-hint";

openModal({
title: "Please Connect Wallet",
children: (
<div>
<Text>You need to be connected to see your feed.</Text>
<Space h={10} />
<Button onClick={() => closeModal(id)} fullWidth size="lg">
<Button onClick={() => closeAllModals()} fullWidth size="lg">
OK
</Button>
</div>
Expand All @@ -25,8 +23,6 @@ export function openConnectWalletHintModel() {
}

export function openFaucetHintModel() {
const id = "faucet-hint-hint";

const address = getCurrentAddress();

openModal({
Expand All @@ -52,7 +48,7 @@ export function openFaucetHintModel() {
component="a"
href={`https://faucet.crossbell.io/?address=${address}`}
target="_blank"
onClick={() => closeModal(id)}
onClick={() => closeAllModals()}
fullWidth
size="lg"
>
Expand All @@ -64,13 +60,11 @@ export function openFaucetHintModel() {
}

export function openMintNewCharacterModel() {
const id = "mint-character";

openBorderlessModal({
children: (
<div
className="relative flex justify-center items-center"
onClick={() => closeModal(id)}
onClick={() => closeAllModals()}
>
{/* close btn */}
<div className="absolute top-0 right-0 w-100px h-100px cursor-pointer"></div>
Expand Down
2 changes: 1 addition & 1 deletion components/common/Note/MarkdownRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export function MarkdownRenderer({
)}
</div>
);
}, [children, collapsible, height]);
}, [children, collapsible, showReadMoreButton]);

return Memoed;
}
Expand Down
7 changes: 5 additions & 2 deletions components/common/Note/Zoom.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import Zoom_ from "react-medium-image-zoom";
import "react-medium-image-zoom/dist/styles.css";
import styles from "./Zoom.module.css";
// import styles from "./Zoom.module.css";

export default function Zoom({ children }: { children: React.ReactNode }) {
return (
<span className={styles.zoom} onClick={(e) => e.stopPropagation()}>
<span
// className={styles.zoom}
onClick={(e) => e.stopPropagation()}
>
<Zoom_>{children}</Zoom_>
</span>
);
Expand Down
2 changes: 1 addition & 1 deletion pages/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Page: NextPageWithLayout = () => {
)}
>
<div className="py-5 w-full">
<SearchInput defaultValue={q} />
<SearchInput value={q} />
</div>
</Header>

Expand Down

1 comment on commit fccf004

@vercel
Copy link

@vercel vercel bot commented on fccf004 Sep 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

crossbell-io – ./

crossbell-io-crossbell.vercel.app
crossbell-io-git-main-crossbell.vercel.app
crossbell.vercel.app

Please sign in to comment.