Skip to content

Commit

Permalink
chore: small tweak to fix LicenseModal content
Browse files Browse the repository at this point in the history
  • Loading branch information
pongstr committed Jan 3, 2025
1 parent ba2f551 commit b669399
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/ConnectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { Key, ListBox, ListBoxItem, Selection } from "react-aria-components";
import { ExternalLink } from "./misc/ExternalLink";
import { Modal, ModalContent } from "./components/modal/Modal";
import { ZmkStudio } from "./components/ZmkStudio";
import { AppFooter } from './AppFooter'

export type TransportFactory = {
label: string;
Expand Down Expand Up @@ -289,8 +288,8 @@ export const ConnectModal = ({
? connectOptions(transports, onTransportCreated, open)
: noTransportsOptionsPrompt()}

<div className="text-xs opacity-40 pointer-events-none select-none">
<AppFooter />
<div className="text-xs text-center opacity-40 select-none">
<span>&copy; 2024 - The ZMK Contributors</span>
</div>
</ModalContent>
</Modal>
Expand Down
4 changes: 2 additions & 2 deletions src/misc/LicenseNoticeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export const LicenseNoticeModal: FC<PropsWithChildren> = ({ children }) => {
{children}
</a>
<Modal open={open} onOpenChange={setOpen}>
<ModalContent className="w-[40vw]">
<ModalContent className="w-9/12 md:max-w-3xl">
<div className="flex justify-between items-start">
<p className="mr-2">
ZMK Studio is released under the open source Apache 2.0 license. A
copy of the NOTICE file from the ZMK Studio repository is included
here:
</p>
</div>
<pre className="w-96 m-4 font-mono text-xs">{NOTICE}</pre>
<pre className="w-full overflow-auto font-mono text-xs p-3 border border-base-300 rounded-lg bg-base-200">{NOTICE}</pre>
</ModalContent>
</Modal>
</>
Expand Down

0 comments on commit b669399

Please sign in to comment.