youssefreda9 commited on
Commit
5b6a568
·
1 Parent(s): 010e380

fix: Invert summary length slider value for RTL - RTL slider: min=1 is RIGHT (طويل), max=3 is LEFT (قصير) - API expects: 1=short, 3=long - Fix: send (4 - value) to API so طويل→3 (long), قصير→1 (short)

Browse files
Files changed (1) hide show
  1. src/index.html +1 -1
src/index.html CHANGED
@@ -1036,7 +1036,7 @@
1036
  },
1037
  body: JSON.stringify({
1038
  text: text,
1039
- length: parseInt(lengthValue),
1040
  full_text: isFullText
1041
  })
1042
  });
 
1036
  },
1037
  body: JSON.stringify({
1038
  text: text,
1039
+ length: 4 - parseInt(lengthValue),
1040
  full_text: isFullText
1041
  })
1042
  });