Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Offline vcsharp  
#1 Posted : 06 October 2018 05:35:05(UTC)
vcsharp


Rank: YAF Commander

Reputation:

Joined: 03/10/2017(UTC)
Posts: 75
Man
India

Thanks: 24 times
I would like to make some minor changes in UI like display less information or less topics per page etc. for very small devices, but for this I should know the screen width.

Question : Is there some api in YAF to know screen width in code-behind?

Edited by user 06 October 2018 06:55:16(UTC)  | Reason: Not specified

Sponsor
Offline Zero2Cool  
#2 Posted : 08 October 2018 19:53:10(UTC)
Zero2Cool


Rank: YAF Leader

Reputation:

Medals: Medal of Honor for the Support Knight: Given to a community member who has assisted lots and lots of people!

Joined: 26/04/2011(UTC)
Posts: 1,069
Man
United States
Location: in a van down by the river

Thanks: 235 times
Was thanked: 101 time(s) in 92 post(s)
YAF is starting to use Bootstrap, so you can apply the hidden class elements to hide a div depending on resolution. You'll want to check the /controls for this and also /pages might have something too.

I think TopicLine control might be what you're seeking.

https://github.com/YAFNE...notherForum.NET/controls

.And for bootstrap, this area should help you.
https://getbootstrap.com...s/4.1/utilities/display/
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error