Skip to content

Add config to display MooLite on the left of the screen - #149

Open
seashairo wants to merge 1 commit into
Ishadijcks:developfrom
seashairo:feature/moolite-138-display-side-choice
Open

Add config to display MooLite on the left of the screen#149
seashairo wants to merge 1 commit into
Ishadijcks:developfrom
seashairo:feature/moolite-138-display-side-choice

Conversation

@seashairo

Copy link
Copy Markdown
Contributor

Overview

#138

When this change is applied, the MooLite plugin will have an additional config option for display side, which can be set to either left or right. Right will remain the default, and left will display on the other side using the magic of flex display to render backwards.

Testing instructions

  • Open MooLite plugin
  • Change display side

Screenshots

Right

image

Left

image

Ishadijcks#138

When this change is applied, the MooLite plugin will have an additional
config option for display side, which can be set to either left or
right. Right will remain the default, and left will display on the other
side using the magic of flex display to render backwards.
Comment thread src/App.vue
<MooDivider class="border-b-4" />

<div class="flex flex-row h-full">
<div id="moolite-container" class="flex flex-row h-full">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Naming is hard - this might not be the best name, but App seemed even worse

Comment on lines +80 to +85
options: mooLiteDisplaySides.map((side) => {
return {
text: toTitleCase(side),
value: side,
};
}),

@seashairo seashairo Feb 10, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think this could improve dropdown configs if it was more generic e.g. options: mapArrayToOptions(mooLiteDisplaySides), and save some of the verbosity around using enums alongside their names.

WDYT?

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.

1 participant