From 886a61922c5ca6379e9a5d36f04802de35843734 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Mon, 7 Mar 2022 21:41:23 -0800 Subject: [PATCH] overflow adjustmentsg --- client/components/document/document.module.css | 1 + client/components/preview/preview.module.css | 5 ----- client/pages/index.tsx | 6 +++++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/components/document/document.module.css b/client/components/document/document.module.css index 0a3260f2..273c29c0 100644 --- a/client/components/document/document.module.css +++ b/client/components/document/document.module.css @@ -8,6 +8,7 @@ display: flex; flex-direction: column; min-height: 400px; + overflow: scroll; } .fileNameContainer { diff --git a/client/components/preview/preview.module.css b/client/components/preview/preview.module.css index fcee23ff..af962475 100644 --- a/client/components/preview/preview.module.css +++ b/client/components/preview/preview.module.css @@ -1,8 +1,3 @@ -.markdownPreview { - position: relative; - overflow-y: auto; -} - .markdownPreview h1, .markdownPreview h2, .markdownPreview h3, diff --git a/client/pages/index.tsx b/client/pages/index.tsx index 7756eba6..a4b6218c 100644 --- a/client/pages/index.tsx +++ b/client/pages/index.tsx @@ -28,12 +28,16 @@ const Home = ({ theme, changeTheme }: ThemeProps) => { - User authentication - Private, public, and secret posts -If you want to signup, you can join at [/signup](/signup) as long as you have a passcode provided by the administrator (which you don't need for this demo). If you're already signed in, you can create a new post by clicking the "New" button in the header. This demo is on a memory-only database, so accounts and pastes can be deleted at any time. +If you want to signup, you can join at [/signup](/signup) as long as you have a passcode provided by the administrator (which you don't need for this demo). +**This demo is on a memory-only database, so accounts and pastes can be deleted at any time.** +You can find the source code on [GitHub](https://github.com/MaxLeiter/drift). Drift was inspired by [this tweet](https://twitter.com/emilyst/status/1499858264346935297): > What is the absolute closest thing to GitHub Gist that can be self-hosted? In terms of design and functionality. Hosts images and markdown, rendered. Creates links that can be private or public. Uses/requires registration. I have looked at dozens of pastebin-like things. + + `} title={`Welcome to Drift.md`} initialTab={`preview`}