Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
13798d27
Commit
13798d27
authored
Nov 02, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tab title hidden display
parent
33a13264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
tab-proxy.js
apps/remix-ide/src/app/panels/tab-proxy.js
+17
-11
No files found.
apps/remix-ide/src/app/panels/tab-proxy.js
View file @
13798d27
...
...
@@ -2,9 +2,16 @@ var yo = require('yo-yo')
var
$
=
require
(
'jquery'
)
const
EventEmitter
=
require
(
'events'
)
const
globalRegistry
=
require
(
'../../global/registry'
)
const
csjs
=
require
(
'csjs-inject'
)
require
(
'remix-tabs'
)
const
css
=
csjs
`
.remix_tabs div[title]{
display: flex;
}
`
export
class
TabProxy
{
constructor
(
fileManager
,
editor
,
appManager
)
{
this
.
event
=
new
EventEmitter
()
...
...
@@ -140,11 +147,10 @@ export class TabProxy {
const
tabPath
=
slash
.
reverse
()
const
tempTitle
=
[]
for
(
let
i
=
0
;
i
<
tabPath
.
length
;
i
++
)
{
tempTitle
.
push
(
tabPath
[
i
])
const
formatPath
=
[...
tempTitle
].
reverse
()
if
(
!
title
)
{
if
(
!
title
)
{
for
(
let
i
=
0
;
i
<
tabPath
.
length
;
i
++
)
{
tempTitle
.
push
(
tabPath
[
i
])
const
formatPath
=
[...
tempTitle
].
reverse
()
const
index
=
this
.
loadedTabs
.
findIndex
(({
title
})
=>
title
===
formatPath
.
join
(
'/'
))
if
(
index
===
-
1
)
{
...
...
@@ -175,12 +181,12 @@ export class TabProxy {
}
break
;
}
}
else
{
this
.
loadedTabs
.
push
({
name
,
title
})
}
}
else
{
this
.
loadedTabs
.
push
({
name
,
title
})
}
this
.
_view
.
filetabs
.
addTab
({
...
...
@@ -213,7 +219,7 @@ export class TabProxy {
}
renderTabsbar
()
{
this
.
_view
.
filetabs
=
yo
`<remix-tabs></remix-tabs>`
this
.
_view
.
filetabs
=
yo
`<remix-tabs
class=
${
css
.
remix_tabs
}
></remix-tabs>`
this
.
_view
.
filetabs
.
addEventListener
(
'tabClosed'
,
(
event
)
=>
{
if
(
this
.
_handlers
[
event
.
detail
])
this
.
_handlers
[
event
.
detail
].
close
()
this
.
event
.
emit
(
'tabCountChanged'
,
this
.
_view
.
filetabs
.
tabs
.
length
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment