لم يكن لعناصر قائمة خيارات الاستطلاع حاوية تخطيط، مما سمح لأقراص الإشارة إلى المستخدم (@mention ) بالتداخل مع علامة الخيار أو مربع الاختيار.
يُجري هذا التغيير خيارات الاستطلاع كصفوف مرنة بحيث يتم دائمًا وضع العلامة والمحتوى جنبًا إلى جنب.
تغيير CSS فقط، لا تغييرات في السلوك أو الترميز.
إعادة الإنتاج:
أنشئ استطلاعًا يحتوي على خيارات تتضمن إشارات إلى مستخدمين (أقراص إشارة).
في عرض الموضوع المنسق، يمكن أن تتداخل علامة/مربع اختيار الخيار مع قرص الإشارة.
الإصلاح:
اجعل عناصر قائمة خيارات الاستطلاع صفًا مرنًا بحيث يتم وضع علامة/مربع الاختيار ومحتوى الخيار جنبًا إلى جنب مع تباعد متسق.
تُظهر لقطات الشاشة التداخل قبل التغيير.
الاستطلاع قبل، المعاينة جيدة:
الاستطلاع مع الخلل:
بعد الإصلاح:
طلب السحب (PR):
main ← fix/poll-option-mention-overlap
opened 07:54AM - 08 Feb 26 UTC
Poll option list items had no layout container, allowing @mention pills to overl… ap the option marker or checkbox.
This change makes poll options flex rows so marker and content are always laid out side by side.
CSS only, no behavior or markup changes.
Repro:
Create a poll with options that include @mentions (mention pills).
In the cooked topic view, the option marker/checkbox can overlap the mention pill.
Fix:
Make poll option list items a flex row so the marker/checkbox and the option content
are laid out side by side with consistent spacing.
Screenshots show the overlap before the change.
<img width="1475" height="575" alt="Screenshot 2026-02-08 093307" src="https://github.com/user-attachments/assets/e21d3fa3-946c-4325-9303-07b90744dea5" />
<img width="791" height="743" alt="Screenshot 2026-02-08 093403" src="https://github.com/user-attachments/assets/b7d609c0-8289-413d-b361-45c3972a7d14" />
<img width="839" height="832" alt="image" src="https://github.com/user-attachments/assets/5eb9634c-c55e-4f99-a8e4-3371abef4ce2" />
الكود لإعادة الإنتاج:
Checkbox @Richardeehavior Ok
[ ] @Richarde
[ ] @discobot
# Polls glitch when mention pills are used@Richarde @ANNAut not in preview
[poll type=multiple results=on_close name=glitchMentionPills chartType=bar close=2028-02-06T21:45:00.000CET groups=mitglieder max=4 min=1]
* @ANNA
* @Alice
* @Andre
* [date=2026-02-12 time=17:00:00 timezone=Europe/Berlin]
* [date=2026-02-13 time=18:00:00 timezone=Europe/Berlin]
* normale Text
* 2nd no@ANNAmal TextOption
[/poll]
Checkbox @Richardeehavior Ok
@Richarde
@discobot
Polls glitch when mention pills are used@Richarde @ANNAut not in preview
@ANNA
@Alice
@Andre
2026-02-12T16:00:00Z
2026-02-13T17:00:00Z
normale Text
2nd no@ANNAmal TextOption
إعجاب واحد (1)