-
Notifications
You must be signed in to change notification settings - Fork 0
added tabs to side bar, including hierarchy #120
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,27 +28,30 @@ export class BubbleSelect extends FormFieldBaseElement { | |
| } | ||
|
|
||
| protected override render = () => html` | ||
| ${ this.options.map(({ label, value, imageUrl }) => html` | ||
| <div | ||
| class=${classMap({ | ||
| "bubble": true, | ||
| "selected": value === this.value, | ||
| })} | ||
| style=${styleMap({ | ||
| "background-image": `url(${imageUrl})`, | ||
| })} | ||
| @click=${() => { | ||
| // this.onChange({ target: { name: this.name, value: itemValue } }); | ||
| this.dispatchEvent(new CustomEvent("value-change", { | ||
| detail: value, | ||
| })) | ||
| } } | ||
| > | ||
| <div class="gradient"></div> | ||
| <span class="label"> | ||
| ${ label } | ||
| </span> | ||
| </div>` | ||
| )} | ||
| <label>Select base style</label> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we're making this a fully self-contained one-off instead of a generic/reusable form control, we should probably revert the class to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't even know what override does, so we can get rid of it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
class Dog {
bark() {
console.log("Woof")
}
}
class FrenchBulldog extends Dog {
override bark() {
console.log("Le woof")
}
}On a related note, if |
||
| <div class="studio-bubble-options"> | ||
| ${ this.options.map(({ label, value, imageUrl }) => html` | ||
| <div | ||
| class=${classMap({ | ||
| "bubble": true, | ||
| "selected": value === this.value, | ||
| })} | ||
| style=${styleMap({ | ||
| "background-image": `url(${imageUrl})`, | ||
| })} | ||
| @click=${() => { | ||
| // this.onChange({ target: { name: this.name, value: itemValue } }); | ||
| this.dispatchEvent(new CustomEvent("value-change", { | ||
| detail: value, | ||
| })) | ||
| } } | ||
| > | ||
| <div class="gradient"></div> | ||
| <span class="label"> | ||
| ${ label } | ||
| </span> | ||
| </div>` | ||
| )} | ||
| </div> | ||
| ` | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,27 @@ | ||
| .inspector-input-set { | ||
| label { | ||
| display: block; | ||
| color: #fff; | ||
| margin-bottom: .5rem; | ||
| } | ||
| textarea { | ||
| background: var(--color-panel-item-name-background); | ||
| border: none; | ||
| box-sizing: border-box; | ||
| color: #fff; | ||
| font-family: "Fira Sans", sans-serif; | ||
| outline: none; | ||
| padding: .5rem; | ||
| border-radius: .5rem; | ||
| margin-bottom: 1rem; | ||
| resize: none; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .sidebar-button-row { | ||
| width: 100%; | ||
| display: flex; | ||
| justify-content: center; | ||
| margin-bottom: 1rem; | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| :host { | ||
| font-family: "Fira Sans", sans-serif; | ||
| font-size: 15px; | ||
| color: #fff; | ||
|
|
||
| label { | ||
| display: block; | ||
| margin-bottom: .5rem; | ||
| } | ||
| } | ||
|
|
||
|
|
||
| .studio-sidebar-frame { | ||
| padding: 1rem; | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things here:
How would you feel about styling the scrollbar to be less invasive? It's pretty ugly on Windows. You can copy the scrollbar styles from
studio-web/src/lib/scene-hierarchy.element.scssif you don't have any objections. (And we'll extract this type of thing to Sass mixins soon so there's not so much copypasta going on with styles)Is it expected that most of the options don't have images currently? Are we waiting for a frontend update so those get populated?
Did you talk to @bflatastic about hiding the labels by default? I'm not sure if I love it, tbh. The missing images obviously make it worse, but even when the images are there I worry that it just makes it unnecessarily difficult to understand what the options actually represent.
If we do keep the hidden labels, we should probably give the same treatment to the gradient overlays, since they make the images a little harder to "read" and don't serve much purpose except making the labels more legible.
EDIT: Just got off the call with you re: this feature being moved into its own page. 😆 Feel free to ignore anything in this comment that won't be relevant for the new design.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't even think we're going to keep that input for styles. We have a lot of styles and it doesn't seem to accommodate them well.