Suggested New KTL class - KTLsmallscreen #377
Replies: 4 comments 2 replies
-
We could add ktlCond to zoom so you can add it if it's mobile. What do you think @cortexrd Craig |
Beta Was this translation helpful? Give feedback.
-
Hi @Greenlight88, First I'm trying to reproduce that layout where your login page is sort of "modal" against the background. How did you do that? I tried a modal login but it's doesn't switch to modal. Anyways, I don't think I'd integrate this as part of the KTL for now. But what you can do is add some custom code that, when a view is rendered, you check if it's a login screen and if window.innerHeight is less than a threshold value you decide (ex 800px), then reduce the zoom of the view using CSS. Try this code:
Norm |
Beta Was this translation helpful? Give feedback.
-
BTW guys, Claude.ai is incredible! I just tried it to see what he'd come up with and here's my question vs his answer: Here's the text, copied for your convenience, if you want to try it.
|
Beta Was this translation helpful? Give feedback.
-
Thank you both - I couldn't get any of that to work - I settled on just applying this to KTL _zoom=[80], [ktlTarget, $('#kn-scene_257')] And that seems to be good enough - keep it simple, I must remember |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Just a thought really - wondering if the zoom feature could be combined with a media query to provide responsive design for smaller screens like laptops
I can see the KTLmobile class combined with Zoom could be used to adapt for mobile - however in case of mobile its so particular that it would need its own css - I'm more thinking for cases where design elements go into the overflow for smaller screens (eg laptop vs TV) - could we apply a new KTLclass for smaller screens?
I ran into this issue with our login screen where the form ran into the overflow on laptops

I found the KTL _zoom could fix it, but then it didn't look right on larger displays
Beta Was this translation helpful? Give feedback.
All reactions