Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/node/utils/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() ?? '';
Expand Down
56 changes: 56 additions & 0 deletions src/static/skins/no-skin/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
10 changes: 10 additions & 0 deletions src/static/skins/no-skin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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