Skip to content

Commit

Permalink
chore: Make image annotator fit Tour preview. #1597
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Nov 3, 2022
1 parent 6c07a49 commit 233f179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/examples/image_annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ async def serve(q=Q):
ui.button(name='back', label='Back', primary=True),
]
else:
q.page['example'] = ui.form_card(box='1 1 -1 -1', items=[
q.page['example'] = ui.form_card(box='1 1 5 8', items=[
ui.image_annotator(
name='annotator',
title='Drag to annotate',
image='https://images.pexels.com/photos/2696064/pexels-photo-2696064.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1',
image_height='280px',
image_height='450px',
tags=[
ui.image_annotator_tag(name='p', label='Person', color='$cyan'),
ui.image_annotator_tag(name='f', label='Food', color='$blue'),
Expand Down

0 comments on commit 233f179

Please sign in to comment.