Skip to content

Commit

Permalink
fix #3437 Fix tabs width control
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdong262 committed Jun 13, 2024
1 parent c678566 commit 0d59b46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/client/components/main/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class Index extends Component {
loaded: configLoaded,
'system-ui': store.config.useSystemTitleBar,
'not-system-ui': !store.config.useSystemTitleBar,
'is-mac': isMac,
'is-mac': isMac && !window.et.isWebApp,
'is-win': isWin,
pinned,
'qm-pinned': pinnedQuickCommandBar,
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/tabs/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default class Tabs extends React.Component {
const left = overflow
? '100%'
: tabsWidthAll
const w1 = isMacJs ? 30 : windowControlWidth
const w1 = isMacJs && window.et.isWebApp ? 30 : windowControlWidth
const style = {
width: width - w1 - 166
}
Expand Down
4 changes: 2 additions & 2 deletions src/client/components/tabs/tabs.styl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.tabs-inner
margin-left 72px
.tabs-extra
right 0
right 96px
.tabs-inner
position relative
z-index 2
Expand Down Expand Up @@ -137,7 +137,7 @@
position absolute
height 40px
top 0
right 96px
right 0
line-height 40px
z-index 20

Expand Down

0 comments on commit 0d59b46

Please sign in to comment.