From 2241438fc79233a20232d69d910795f3881906f1 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 24 Feb 2022 22:40:22 +0300 Subject: [PATCH] [all] fix markup for win xp --- apps/common/main/lib/view/Header.js | 8 +++++--- .../common/main/resources/less/winxp_fix.less | 19 ++++++++++++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 79df1ab09..19de39c1f 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -104,9 +104,11 @@ define([ '' + '
' + '
' + - '' + + '
' + + '' + + '
' '
' + '' + ''; diff --git a/apps/common/main/resources/less/winxp_fix.less b/apps/common/main/resources/less/winxp_fix.less index 25e061195..9b319bf6a 100644 --- a/apps/common/main/resources/less/winxp_fix.less +++ b/apps/common/main/resources/less/winxp_fix.less @@ -1,6 +1,19 @@ .winxp { - .toolbar .tabs>ul, - .toolbar .extra .btn-slot,#box-document-title .btn-slot { - height:28px; + @toolbar-editor-height: 28px; + @toolbar-viewer-height: 32px; + .toolbar { + .tabs > ul, .extra .btn-slot { + height: @toolbar-editor-height; } + + &.toolbar-view { + .tabs > ul, .extra .btn-slot { + height: @toolbar-viewer-height; + } + } + } + + #box-document-title .btn-slot { + height: @toolbar-editor-height; + } } \ No newline at end of file