View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
07927Feature requestsSurvey editingpublic2024-02-12 10:38
ReporterDenisChenu Assigned To 
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary07927: Allow column style in question attribute
Description

We have colun style in config.php (null,css,table,ul). Default to ul.

Sometimes some user can need table on some question and css on another one.

Additional Information

Presentasion in CSS made answer like this:
Answer1 Answer2
Answer3 Answer4

and ul like this
Answer1 Answer3
Answer2 Answer4

different approch : different need.

Have already all the code ready, just need to add an attribute.

TagsNo tags attached.
Bug heat6
Story point estimate
Users affected %

Relationships

related to 18211 ready for testingp_teichmann Bug reports List (Radio) questions columns not in one (ul) tag. 

Users monitoring this issue

There are no users monitoring this issue.

Activities

galads

galads

2021-11-02 11:35

reporter   ~67053

And also this, is it still an issue?

DenisChenu

DenisChenu

2021-11-02 11:54

developer   ~67056

We lost this feature in 3.X i think (maybe another mantis issue)

We lost
Answer1 Answer2
Answer3 Answer4

order.
Can be done in QuestionTheme, maybe but still lost

column_style-css.png (16,450 bytes)   
column_style-css.png (16,450 bytes)   
column_style-ul.png (17,048 bytes)   
column_style-ul.png (17,048 bytes)   
DenisChenu

DenisChenu

2022-06-25 11:45

developer   ~70529

4 solution :

  1. (ul order) Multiple ul : API compatible, same than current, limited to 1,2,3,4,6,12
  2. (css order) li with col-sm-X : : limited to 1,2,3,4,6,12
  3. (ul order) columns : broke API but really good, work on all major browser including IE11 (must test with calc) {column-count: attr(data-columns);}
  4. (css order)css-grid : {display: grid;grid-template-columns: repeat(attr(data-columns), auto);}, broken in IE : https://caniuse.com/mdn-css_properties_grid-template-columns_repeat

@c_schmitz : without broke API 1 is the default, with broke API : 3 is the default.
Except this question, OK to add this to master ?

c_schmitz

c_schmitz

2022-06-25 12:58

administrator   ~70531

Last edited: 2022-06-25 12:59

What do you mean by 'API compatible'?
We don't care about IE, anymore.

DenisChenu

DenisChenu

2022-06-26 18:41

developer   ~70532

SurveyTheme can use different @media width for col-sm. For example, some user can force 2 columns on little screen to (it's interesting).
If we move to a different html : it borke this part
if we move to column-count: attr(data-columns); we must fix the @media width set to one column .
https://github.com/LimeSurvey/LimeSurvey/blob/master/themes/survey/vanilla/css/theme.css
seems best here.

base.css : set to X columns on all
theme.css : set to 1 columns with @media only screen and (max-device-width: 760px)

usage of columns is not really a new feature : it the same order
A01 A03
A02 A04

DenisChenu

DenisChenu

2023-04-05 11:33

developer   ~74377

In 6 : https://getbootstrap.com/docs/5.3/layout/grid/#row-columns

DenisChenu

DenisChenu

2024-02-12 10:38

developer   ~79444

Alt (after https://github.com/LimeSurvey/LimeSurvey/pull/3038)
https://developer.mozilla.org/fr/docs/Web/CSS/grid-template-columns

Issue History

Date Modified Username Field Change
2013-06-16 15:38 DenisChenu New Issue
2013-06-16 15:40 DenisChenu Severity @50@ => feature
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing
2021-11-02 11:35 galads Note Added: 67053
2021-11-02 11:35 galads Bug heat 0 => 2
2021-11-02 11:35 galads Assigned To => galads
2021-11-02 11:35 galads Status new => feedback
2021-11-02 11:54 DenisChenu Note Added: 67056
2021-11-02 11:54 DenisChenu File Added: column_style-css.png
2021-11-02 11:54 DenisChenu File Added: column_style-ul.png
2021-11-02 11:54 DenisChenu Bug heat 2 => 4
2021-11-02 11:54 DenisChenu Status feedback => assigned
2021-11-02 11:58 galads Status assigned => acknowledged
2022-06-23 14:27 DenisChenu Relationship added related to 18211
2022-06-23 14:33 DenisChenu Assigned To galads =>
2022-06-23 14:33 DenisChenu Status acknowledged => new
2022-06-24 18:25 DenisChenu Assigned To => DenisChenu
2022-06-24 18:25 DenisChenu Status new => assigned
2022-06-25 11:45 DenisChenu Note Added: 70529
2022-06-25 12:58 c_schmitz Note Added: 70531
2022-06-25 12:58 c_schmitz Bug heat 4 => 6
2022-06-25 12:59 c_schmitz Note Edited: 70531
2022-06-26 18:41 DenisChenu Note Added: 70532
2023-04-05 11:33 DenisChenu Note Added: 74377
2024-02-12 10:38 DenisChenu Note Added: 79444
2024-02-12 10:38 DenisChenu Assigned To DenisChenu =>
2024-02-12 10:38 DenisChenu Status assigned => new