mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-01-23 02:35:34 +00:00
chore: fixed git determination and fixed no skin css issues (#7089)
This commit is contained in:
parent
6970c3aca2
commit
b8e61b4606
3 changed files with 67 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ const parseSettings = (settingsFilename: string, isSettings: boolean) => {
|
|||
export const getGitCommit = () => {
|
||||
let version = '';
|
||||
try {
|
||||
let rootPath = settings.root;
|
||||
let rootPath = absolutePaths.findEtherpadRoot();
|
||||
if (fs.lstatSync(`${rootPath}/.git`).isFile()) {
|
||||
rootPath = fs.readFileSync(`${rootPath}/.git`, 'utf8');
|
||||
rootPath = rootPath.split(' ').pop()?.trim() ?? '';
|
||||
|
|
|
|||
|
|
@ -6,3 +6,59 @@
|
|||
#editbar LI {border:1px solid #d5d5d5;}
|
||||
from pad.css
|
||||
*/
|
||||
#button {
|
||||
font-size: 90%;
|
||||
width: 100%;
|
||||
position: unset;
|
||||
}
|
||||
|
||||
button[type="submit"], input[type="text"] {
|
||||
position: unset;
|
||||
}
|
||||
|
||||
button[type="submit"] {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
#label {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
#padname {
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#inner {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.body {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
width: 100%;
|
||||
margin-top: 0;
|
||||
padding: 15px 0 15px 0;
|
||||
}
|
||||
|
||||
|
||||
form {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
height: 4rem;
|
||||
flex-direction: row;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,4 +4,14 @@ window.customStart = () => {
|
|||
// define your javascript here
|
||||
// jquery is available - except index.js
|
||||
// you can load extra scripts with $.getScript http://api.jquery.com/jQuery.getScript/
|
||||
const divHoldingPlaceHolderLabel = document
|
||||
.querySelector('[data-l10n-id="index.placeholderPadEnter"]');
|
||||
|
||||
const observer = new MutationObserver(() => {
|
||||
document.querySelector('#go2Name input')
|
||||
.setAttribute('placeholder', divHoldingPlaceHolderLabel.textContent);
|
||||
});
|
||||
|
||||
observer
|
||||
.observe(divHoldingPlaceHolderLabel, {childList: true, subtree: true, characterData: true});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue