Closed michael-land closed 6 years ago
Here are 2 ways you could tackle this problem:
PROS :
Via .hyper.js
and its css
property
module.exports = {
config: {
// ...
// custom CSS to embed in the main window
css: `.line {
font-size: 1rem;
}`,
// ...
}
}
CONS :
class
changes, the fix will break and will necessitate a manual update.PROS :
NB : This a a fortune fix, the problem should be treated at its source
via ~/.hyper-plugins/local/hyperline/dist/hyperline.js
// HYPERLINE CODE START
// ...
// HYPERLINE CODE END
global.onload = () => { // THIS IS AN EXAMPLE
let arr = ["red", "yellow", "green", "orange", "blue", "cyan"];
let element = document.querySelectorAll("#hyper > div:nth-child(3) > div")[0];
// The [][0] case is voluntarly not treated so it raises an error meaning that the selector needs a refresher
element.style.display = "flex";
element.style.justifyContent = "space-between";
element.style.paddingTop = '3px' // Prevent the last line of the terminal to underlap the plugin when splitting
Array.from(element.children).forEach((el, i) => {
el.style.color = arr[i];
el.style.stroke = arr[i];
});
};
CONS :
That make sense. Thank you.
The font size of hyperline is too small on a large screen. I tried
but it doesn't work. any ideas?