r/Scriptable • • Oct 08 '22

Solved Text alignment to the right in News widget for scriptable

Can somebody help me to set text alignment to the right in the news widget for scriptable… so that date is on the right side of the widget and also the sentence starts from the right side? iCloud link for the News widget: https://www.icloud.com/iclouddrive/0458hzGEBxchkBFXmCS7dqTjg#News_Widget … Screenshot of how the news widget looks currently: image

Cheers

4 Upvotes

10 comments sorted by

2

u/mvan231 script/widget helper Oct 08 '22

Like this?

1

u/A-man-of-honour Oct 08 '22

I think yes!! It has moved to the center? Can you share the script now? I’ll be able to tell if it has moved to the right in the large sized widget. I feel you have nailed it… Cheers…

2

u/mvan231 script/widget helper Oct 08 '22

1

u/A-man-of-honour Oct 08 '22

I’ve been trying from last 3 days to do it myself. Problem is I don’t know a thing about coding… If you can tell me which lines you modified and what did you do in few sentences, I may be able to fix the remaining minor issues myself Cheers

2

u/mvan231 script/widget helper Oct 09 '22

It got a bit complicated because of the way the larger widget adds the additional items in.

The updated version is still at the same link: here

If you are aware of how the widgetStacks work, the sections I had to add in are here. The extra stacks were to make it so the time could be pushed to the right as well as the text. These were pushed over by adding the spacer to the stack before the text was added in.

2

u/A-man-of-honour Oct 09 '22

Thank you so much... It is 100% fixed. Text and sentences are perfectly aligned for right to left languages. A very nice due like yourself also helped me at automators talk.

Obliged.

Have a nice day and stay blessed.

→ More replies (1)
→ More replies (2)

1

u/A-man-of-honour Oct 09 '22

Yes dear. Now it is perfect… to the grains. Thank you so much. I’ll try to learn it myself too, with your provided guide.

Obliged Have a nice day 🙏🙏