-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: move theme options out of labs #2340
base: qa
Are you sure you want to change the base?
Changes from 4 commits
ab38426
771e42a
0614ec4
ba30864
7b3a7e0
f803373
90fffaf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,7 +148,7 @@ export const SuggestionDropDown = () => { | |
return ( | ||
<div | ||
className={cn( | ||
'border.gray-300 pointer-events-auto absolute cursor-pointer overflow-y-auto border bg-white text-gray-500', | ||
'pointer-events-auto absolute cursor-pointer overflow-y-auto rounded-sm border border-border bg-background text-muted-foreground', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
inlineEditorStatus ? 'mt-1' : 'mt-0' | ||
)} | ||
style={{ | ||
|
@@ -163,7 +163,7 @@ export const SuggestionDropDown = () => { | |
<div className="block w-full px-1"> | ||
{filteredList.map((item, i) => ( | ||
<div | ||
className={cn('block w-full whitespace-nowrap px-1 hover:bg-gray-100', i === index ? 'bg-gray-200' : '')} | ||
className={cn('block w-full whitespace-nowrap px-1 hover:bg-accent', i === index ? 'bg-accent' : '')} | ||
key={item} | ||
onClick={() => changeValue(item)} | ||
> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ import { gridPanModeAtom } from '@/app/atoms/gridPanModeAtom'; | |
import { HTMLGridContainer } from '@/app/gridGL/HTMLGrid/HTMLGridContainer'; | ||
import { useKeyboard } from '@/app/gridGL/interaction/keyboard/useKeyboard'; | ||
import { pixiApp } from '@/app/gridGL/pixiApp/PixiApp'; | ||
import { ImportProgress } from '@/app/ui/components/ImportProgress'; | ||
import { Search } from '@/app/ui/components/Search'; | ||
import type { MouseEvent } from 'react'; | ||
import { useCallback, useState } from 'react'; | ||
import { useRecoilCallback } from 'recoil'; | ||
|
@@ -37,7 +35,6 @@ export default function QuadraticGrid() { | |
return ( | ||
<div | ||
ref={containerRef} | ||
className="dark-mode-hack" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved this from the parent because it was inverting everything under it. This cause HTML-rendered elements like the empty sheet message to invert to white in dark mode: Instead, we now apply |
||
style={{ | ||
position: 'relative', | ||
width: '100%', | ||
|
@@ -55,8 +52,6 @@ export default function QuadraticGrid() { | |
onKeyUp={onKeyUp} | ||
> | ||
<HTMLGridContainer parent={container} /> | ||
<ImportProgress /> | ||
<Search /> | ||
</div> | ||
); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,8 @@ export const Following = () => { | |
</div> | ||
<div | ||
style={{ | ||
top: 0, | ||
left: 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
width: '100%', | ||
height: '100%', | ||
overflow: 'hidden', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,22 +14,21 @@ export const ImportProgress = () => { | |
const abortController = files[currentFileIndex].abortController; | ||
|
||
return ( | ||
<div className="fixed bottom-16 left-8 z-50 h-[92px] w-[403px] select-none border border-slate-200 bg-white pb-2 pl-4 pr-4 pt-2 tracking-tight shadow-[0_2px_5px_0px_rgba(0,0,0,0.15)]"> | ||
<div className="flex justify-between"> | ||
<div className="absolute bottom-4 left-4 z-50 w-96 select-none rounded border border-border bg-background pb-2 pl-4 pr-4 pt-2 tracking-tight shadow-lg"> | ||
<div className="mb-2 flex items-center justify-between"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<div className="min-w-0"> | ||
<div className="text-base font-medium"> | ||
<div className="font-medium"> | ||
Importing file {fileNo} of {totalFiles} | ||
</div> | ||
|
||
<div className="overflow-hidden text-ellipsis whitespace-nowrap pb-2 text-sm font-normal text-slate-500"> | ||
<div className="overflow-hidden text-ellipsis whitespace-nowrap text-sm font-normal text-muted-foreground"> | ||
{name} | ||
</div> | ||
</div> | ||
|
||
<Button | ||
variant="ghost" | ||
variant="outline" | ||
size="sm" | ||
className="text-primary hover:text-primary" | ||
disabled={abortController === undefined} | ||
onClick={() => abortController?.abort()} | ||
> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved these just to try and put all these elements in the same place. They were in QuadraticGrid before, but ultimately render in the same place. So I'm sticking them here where everything else is.