mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Remove pointless "File Explorer" header
This commit is contained in:
2 files changed
+9
-26
No files matched your search
@@ -536,24 +536,16 @@ export function PreviewPane({ projectId, activeTab }: PreviewPaneProps) {
|
||||
{isMobile ? (
|
||||
<div className="h-full flex flex-col">
|
||||
{mobileCodeView === 'explorer' ? (
|
||||
<>
|
||||
<div className="p-3 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>
|
||||
<ScrollArea className="flex-1">
|
||||
<ScrollBar orientation="horizontal" />
|
||||
<div className="min-w-max">
|
||||
<FileTree
|
||||
projectId={projectId}
|
||||
onFileSelect={handleFileSelect}
|
||||
selectedFile={selectedFile}
|
||||
/>
|
||||
</div>
|
||||
<ScrollArea className="flex-1">
|
||||
<ScrollBar orientation="horizontal" />
|
||||
<div className="min-w-max">
|
||||
<FileTree
|
||||
projectId={projectId}
|
||||
onFileSelect={handleFileSelect}
|
||||
selectedFile={selectedFile}
|
||||
/>
|
||||
</div>
|
||||
</ScrollArea>
|
||||
</>
|
||||
</ScrollArea>
|
||||
) : (
|
||||
<>
|
||||
<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="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)]">
|
||||
<ScrollBar orientation="horizontal" />
|
||||
<div className="min-w-max">
|
||||
|
||||
@@ -111,7 +111,6 @@ const resources = {
|
||||
// Preview Pane
|
||||
projectPreview: 'Project Preview',
|
||||
buildProjectToSeePreview: 'Build your project to see the preview here',
|
||||
fileExplorer: 'File Explorer',
|
||||
fileEditor: 'File Editor',
|
||||
selectFileFromExplorer: 'Select a file from the explorer to edit',
|
||||
openFileExplorer: 'Open File Explorer',
|
||||
@@ -404,7 +403,6 @@ const resources = {
|
||||
// Preview Pane
|
||||
projectPreview: 'Visualização do Projeto',
|
||||
buildProjectToSeePreview: 'Construa seu projeto para ver a visualização aqui',
|
||||
fileExplorer: 'Explorador de Arquivos',
|
||||
fileEditor: 'Editor de Arquivos',
|
||||
selectFileFromExplorer: 'Selecione um arquivo do explorador para editar',
|
||||
openFileExplorer: 'Abrir Explorador de Arquivos',
|
||||
@@ -697,7 +695,6 @@ const resources = {
|
||||
// Preview Pane
|
||||
projectPreview: '项目预览',
|
||||
buildProjectToSeePreview: '构建您的项目以在此处查看预览',
|
||||
fileExplorer: '文件浏览器',
|
||||
fileEditor: '文件编辑器',
|
||||
selectFileFromExplorer: '从浏览器中选择一个文件进行编辑',
|
||||
openFileExplorer: '打开文件浏览器',
|
||||
|
||||
Reference in new issue
Block a user