mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
Make the switch to editor/pdf button to have the same height (#12110)
GitOrigin-RevId: 5ceaad73c6c6b74ce2b6e8bbc79563bfad6ab34b
This commit is contained in:
+5
-3
@@ -25,10 +25,12 @@ function SwitchToEditorButton() {
|
||||
bsStyle={null}
|
||||
bsSize="xs"
|
||||
onClick={handleClick}
|
||||
className="switch-to-editor-btn btn-secondary"
|
||||
className="switch-to-editor-btn toolbar-btn-secondary btn-secondary"
|
||||
>
|
||||
<Icon type="code" className="me-1" />
|
||||
{t('switch_to_editor')}
|
||||
<Icon type="code" className="toolbar-btn-secondary-icon" />
|
||||
<span className="toolbar-btn-secondary-text">
|
||||
{t('switch_to_editor')}
|
||||
</span>
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -25,10 +25,10 @@ function SwitchToPDFButton() {
|
||||
bsStyle={null}
|
||||
bsSize="xs"
|
||||
onClick={handleClick}
|
||||
className="toolbar-btn-secondary btn-secondary"
|
||||
className="switch-to-pdf-btn toolbar-btn-secondary btn-secondary"
|
||||
>
|
||||
<Icon type="file-pdf-o" className="me-1" />
|
||||
{t('switch_to_pdf')}
|
||||
<Icon type="file-pdf-o" className="toolbar-btn-secondary-icon" />
|
||||
<span className="toolbar-btn-secondary-text">{t('switch_to_pdf')}</span>
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -15,10 +15,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.pdf .toolbar.toolbar-pdf when (@is-overleaf-light = false) {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.toolbar-pdf-orphan,
|
||||
.toolbar-pdf-left,
|
||||
.toolbar-pdf-right {
|
||||
|
||||
@@ -433,3 +433,18 @@
|
||||
padding-bottom: 0px;
|
||||
margin-bottom: 0.5px;
|
||||
}
|
||||
|
||||
.switch-to-editor-btn {
|
||||
margin-right: 7px;
|
||||
}
|
||||
|
||||
.switch-to-editor-btn,
|
||||
.switch-to-pdf-btn {
|
||||
text-align: left;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.toolbar-btn-secondary-icon {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user