SMx
(Sorin)
4 أبريل 2019، 8:56ص
1
The font size of code inserts seems unreasonably large.
For example, I’m used to be able to fit a line like this into a window without scrolling sideways.
local tripped_bedr = luup.variable_get("urn:mcs-com:serviceId:SecuritySensor1", "Tripped", 32)
Any possibility to change this for the better?
Thank you.
cjk77
(Chris Klugewicz)
4 أبريل 2019، 12:15م
2
Easy enough to do by overriding the CSS in a theme component:
code {
font-size: 0.8em
}
(If you’re not familiar with theme components, there’s more info here .)
3 إعجابات
SMx
(Sorin)
4 أبريل 2019، 12:27م
3
Yep, that’s all I needed. I’m familiar with components. Thank you so much.
إعجاب واحد (1)
You can also use white-space: pre-wrap;
if you want to completely avoid horizontal scrolling (and if preserving line-breaks isn’t important in your specific case)
4 إعجابات
system
(system)
تم إغلاقه في
4 مايو 2019، 4:00م
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.