Skip to content

Commit

Permalink
saved: adjust margins
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Feb 25, 2025
1 parent 20bb71e commit 6dd02ba
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import inspect
import json
import math
from string import whitespace
from tkinter.ttk import Style
import typing
import uuid
from copy import copy, deepcopy
Expand Down Expand Up @@ -2331,7 +2333,7 @@ def run_count():
)

with gui.div(
className="row align-items-stretch position-relative py-2",
className="container-xxl row align-items-stretch position-relative py-2 pe-0",
style={"minHeight": "78px"},
):
with gui.styled(
Expand Down Expand Up @@ -2434,22 +2436,22 @@ def run_count():

# column 4
with gui.div(
className=f"col-12 col-md-{(11 if hide_author_column else 9) - center_column_width} justify-content-between justify-content-md-end d-flex p-0"
className=f"col-12 col-md-{(11 if hide_author_column else 9) - center_column_width} justify-content-between justify-content-md-end d-flex p-0 pt-2"
):
# mobile
with gui.div(
className="d-flex flex-grow-1 d-md-none justify-content-between justify-content-md-end align-items-center"
):
with gui.div(
className="d-md-none mb-1 flex-grow-1 d-flex justify-content-between align-items-center container-margin-reset",
className="d-md-none mb-1 flex-grow-1 align-items-center d-flex justify-content-between align-items-center container-margin-reset",
):
with gui.div(
className="d-flex",
style={"font-size": "0.7rem", "marginLeft": "36px"},
style={"font-size": "0.7rem", "marginLeft": "46px"},
):
for pill in pills:
pill()
with gui.div(className="d-flex gap-1 align-items-center pt-2"):
with gui.div(className="d-flex gap-1 align-items-center"):
(
self.render_author(
published_run.last_edited_by,
Expand All @@ -2469,12 +2471,16 @@ def run_count():
)
if updated_at and isinstance(updated_at, datetime.datetime):
gui.caption(
f" • {get_relative_time(updated_at)}",
style={"fontSize": "0.8rem"},
)
f" • {get_relative_time(updated_at)}",
style={"fontSize": "0.8rem"},
className="container-margin-reset",
)

# web
with gui.div(className="d-none d-md-block text-end"):
with gui.div(
className="d-none d-md-block text-end white-space-nowrap container-margin-reset",
style={"whiteSpace": "nowrap"},
):
if hide_author_column:
(
self.render_author(
Expand Down

0 comments on commit 6dd02ba

Please sign in to comment.