Remove pointless "File Explorer" header

This commit is contained in:
Alex Gleason committed 2025-09-22 00:10:08 -05:00
1 parent 25f11dbe1d
commit 6478ed21bb
2 files changed
+9 -26

No files matched your search

+9 -23
View File
@@ -536,24 +536,16 @@ export function PreviewPane({ projectId, activeTab }: PreviewPaneProps) {
{isMobile ? ( {isMobile ? (
<div className="h-full flex flex-col"> <div className="h-full flex flex-col">
{mobileCodeView === 'explorer' ? ( {mobileCodeView === 'explorer' ? (
<> <ScrollArea className="flex-1">
<div className="p-3 border-b bg-gradient-to-r from-primary/5 to-accent/5"> <ScrollBar orientation="horizontal" />
<div className="flex items-center justify-between"> <div className="min-w-max">
<h3 className="font-semibold bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">{t('fileExplorer')}</h3> <FileTree
<GitStatusIndicator projectId={projectId} /> projectId={projectId}
</div> onFileSelect={handleFileSelect}
selectedFile={selectedFile}
/>
</div> </div>
<ScrollArea className="flex-1"> </ScrollArea>
<ScrollBar orientation="horizontal" />
<div className="min-w-max">
<FileTree
projectId={projectId}
onFileSelect={handleFileSelect}
selectedFile={selectedFile}
/>
</div>
</ScrollArea>
</>
) : ( ) : (
<> <>
<div className="p-3 border-b bg-gradient-to-r from-primary/5 to-accent/5 flex items-center gap-2"> <div className="p-3 border-b bg-gradient-to-r from-primary/5 to-accent/5 flex items-center gap-2">
@@ -604,12 +596,6 @@ export function PreviewPane({ projectId, activeTab }: PreviewPaneProps) {
) : ( ) : (
<div className="h-full flex"> <div className="h-full flex">
<div className="w-1/3 border-r"> <div className="w-1/3 border-r">
<div className="p-4 border-b bg-gradient-to-r from-primary/5 to-accent/5">
<div className="flex items-center justify-between">
<h3 className="font-semibold bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">{t('fileExplorer')}</h3>
<GitStatusIndicator projectId={projectId} />
</div>
</div>
<ScrollArea className="h-[calc(100%-60px)]"> <ScrollArea className="h-[calc(100%-60px)]">
<ScrollBar orientation="horizontal" /> <ScrollBar orientation="horizontal" />
<div className="min-w-max"> <div className="min-w-max">
-3
View File
@@ -111,7 +111,6 @@ const resources = {
// Preview Pane // Preview Pane
projectPreview: 'Project Preview', projectPreview: 'Project Preview',
buildProjectToSeePreview: 'Build your project to see the preview here', buildProjectToSeePreview: 'Build your project to see the preview here',
fileExplorer: 'File Explorer',
fileEditor: 'File Editor', fileEditor: 'File Editor',
selectFileFromExplorer: 'Select a file from the explorer to edit', selectFileFromExplorer: 'Select a file from the explorer to edit',
openFileExplorer: 'Open File Explorer', openFileExplorer: 'Open File Explorer',
@@ -404,7 +403,6 @@ const resources = {
// Preview Pane // Preview Pane
projectPreview: 'Visualização do Projeto', projectPreview: 'Visualização do Projeto',
buildProjectToSeePreview: 'Construa seu projeto para ver a visualização aqui', buildProjectToSeePreview: 'Construa seu projeto para ver a visualização aqui',
fileExplorer: 'Explorador de Arquivos',
fileEditor: 'Editor de Arquivos', fileEditor: 'Editor de Arquivos',
selectFileFromExplorer: 'Selecione um arquivo do explorador para editar', selectFileFromExplorer: 'Selecione um arquivo do explorador para editar',
openFileExplorer: 'Abrir Explorador de Arquivos', openFileExplorer: 'Abrir Explorador de Arquivos',
@@ -697,7 +695,6 @@ const resources = {
// Preview Pane // Preview Pane
projectPreview: '项目预览', projectPreview: '项目预览',
buildProjectToSeePreview: '构建您的项目以在此处查看预览', buildProjectToSeePreview: '构建您的项目以在此处查看预览',
fileExplorer: '文件浏览器',
fileEditor: '文件编辑器', fileEditor: '文件编辑器',
selectFileFromExplorer: '从浏览器中选择一个文件进行编辑', selectFileFromExplorer: '从浏览器中选择一个文件进行编辑',
openFileExplorer: '打开文件浏览器', openFileExplorer: '打开文件浏览器',