chore: fixed git determination and fixed no skin css issues (#7089)

This commit is contained in:
SamTV12345 2025-08-24 22:17:18 +02:00 committed by GitHub
parent 6970c3aca2
commit b8e61b4606
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 67 additions and 1 deletions

View file

@ -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() ?? '';

View file

@ -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;
}

View file

@ -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});
};