Skip to content

Commit ee2a4a9

Browse files
committed
fix terminal tabs layout and style
1 parent 2af626a commit ee2a4a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

entry/src/main/ets/pages/Index.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ struct Index {
5959
TabContent() {
6060
Column() {
6161
NodeContainer(item.view)
62-
.id('term-node-' + item.id)
6362
.width('100%')
6463
.height('100%')
6564
}
@@ -70,6 +69,7 @@ struct Index {
7069
.id('tabs')
7170
.scrollable(false)
7271
.barHeight(0)
72+
.layoutWeight(1)
7373
.onChange((index: number) => {
7474
this.focusIndex = index;
7575
})

entry/src/main/ets/pages/TabSheetComponent.ets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export struct TabSheets {
2626
.width(STYLE_CONFIGURATION.ICON_SIZE)
2727
.aspectRatio(1)
2828
.padding(2)
29+
.borderRadius(4)
2930
.onClick(() => {
3031
this.closeTabAndTerm(item.id)
3132
})
@@ -67,6 +68,7 @@ export struct TabSheets {
6768
.width(STYLE_CONFIGURATION.ICON_SIZE)
6869
.aspectRatio(1)
6970
.padding(2)
71+
.borderRadius(4)
7072
.onClick(() => {
7173
if (this.tabArray.length < 6) {
7274

0 commit comments

Comments
 (0)