Skip to content

Commit

Permalink
feat: change some styles in compose tab
Browse files Browse the repository at this point in the history
  • Loading branch information
dice2o committed Feb 19, 2023
1 parent ae89c9c commit c414f21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,19 @@ window.addEventListener('DOMContentLoaded', () => {
}
}
// Compose page
const composeWrapper = document.getElementsByClassName(
'uds_coauthor_wrapper'
)[0]
const composeMain = document.getElementsByClassName('main')[0]
const insertBtn = document.getElementById('insert_button')
const previewText = document.getElementById('preview_text')
const previewOptions = document.getElementsByClassName('preview-options')[0]
if (composeWrapper) {
composeWrapper.style.cssText = 'margin-top: -64px'
}
if (composeMain) {
composeMain.style.cssText = 'height: calc(100% - 64px); margin-top: 64px; padding: 20px 10px'
}
if (insertBtn) {
insertBtn.style.cssText = 'display: none'
}
Expand Down

0 comments on commit c414f21

Please sign in to comment.