Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply sql_table and class font-size #769

Merged
merged 6 commits into from
Feb 6, 2023

Conversation

alixander
Copy link
Collaborator

@alixander alixander commented Feb 6, 2023

with font-size 20 and font-size 30

Screen Shot 2023-02-06 at 1 13 23 AM

I also aligned sql table headers

screencapture-file-Users-alexanderwang-dev-alixander-d2-e2etests-out-e2e-report-html-2023-02-06-13_16_08

Half of #549.

I don't want to touch colors for now, as https://github.com/terrastruct/d2/pulls will change things.

@alixander alixander marked this pull request as ready for review February 6, 2023 21:17
@alixander alixander merged commit d704c0a into terrastruct:master Feb 6, 2023
if math.Round(c1Height/2.) != c2Height {
t.Fatal("expected rowless class to be 1/2 height of class with 2 rows")
}
},
Copy link
Contributor

@gavin-ts gavin-ts Feb 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this failing with this change? it shouldn't have been

header height = 2 * row height

dims.Height = rowHeight * (len(obj.Class.Fields) + len(obj.Class.Methods) + 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants