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

Add Visual Indent Option in no_code Layout #43

Open
SybelBlue opened this issue Jul 14, 2024 · 0 comments · May be fixed by #49
Open

Add Visual Indent Option in no_code Layout #43

SybelBlue opened this issue Jul 14, 2024 · 0 comments · May be fixed by #49
Assignees
Labels
enhancement New feature or request pl-element about the prairielearn element/ui

Comments

@SybelBlue
Copy link
Contributor

When using no_code layout, pre-text and post-text are often provided.

In order to make the indentation of the solution appear visually coherent, it would be convenient to provide a visual-indent="n" attribute on the element, that simply nudges the tray n character widths to the right relative to pretext.

Visual Example

We want to emulate the experience of writing inline with the context, like so:

# this is our parsons problem

describe GiftCard do             # pre-text
    context "#withdraw" do       #
        +--------------+ 
>>>>>>>>| solution box |         # box with visual-indent="8"
        +--------------+
    end                          # post-text
end                              # 

not

describe GiftCard do
    context "#withdraw" do
+--------------+
| solution box |                # poorly-aligned, confusing, lame
+--------------+
    end
end
@SybelBlue SybelBlue added the enhancement New feature or request label Jul 14, 2024
@SybelBlue SybelBlue added the pl-element about the prairielearn element/ui label Aug 22, 2024
@nelson-lojo nelson-lojo self-assigned this Aug 24, 2024
@nelson-lojo nelson-lojo linked a pull request Aug 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pl-element about the prairielearn element/ui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants