Skip to content

Conversation

@DrSteinbot
Copy link

No description provided.

	modified:   ui/analyse/src/explorer/explorerConfig.ts
@DrSteinbot DrSteinbot closed this Aug 8, 2023
@DrSteinbot DrSteinbot reopened this Aug 8, 2023
@DrSteinbot
Copy link
Author

I didn't find a way to add to #12885 so I opened a new pr with my commits

DrSteinbot and others added 3 commits August 11, 2023 14:04
this is a complete rewrite of the UI to get rid of the gap that appeared because if moved the x with css
}
.previous {
@extend %flex-wrap;
grid-template-columns: auto auto;
Copy link
Collaborator

Choose a reason for hiding this comment

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

isn't that for grid elements? what sense does it make in a flex context?

Copy link
Author

Choose a reason for hiding this comment

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

it allows me to use column-gap to increase the gap between the elements

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you use gap instead for flex elements

width: 1.75em;
height: 1.75em;
top: -1.5em;
right: -0.65em;
Copy link
Collaborator

Choose a reason for hiding this comment

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

       margin-left: -1.75em;
        width: 1.75em;
        height: 1.75em;
        top: -1.5em;
        right: -0.65em;

that looks extremely fragile :-/ is there a better way that doesn't require 5 constants to maintain?

Copy link
Author

Choose a reason for hiding this comment

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

I don't think so, the margin left is required to close the gap, width and height aren't necessary but sol pointed out in the discord that the circle around the cross was too small so I had to increase width and height and top and right are required to move it into the corner what might be possible is to calculate everything from 1 value in this case 1.75, I'll be looking into that

height: 1.75em;
top: -1.5em;
right: -0.65em;
background-color: rgb(60, 60, 50);
Copy link
Collaborator

@ornicar ornicar Aug 11, 2023

Choose a reason for hiding this comment

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

please use the existing c-*** colors, and see how mix is used in our scss files to create new colors from them

Copy link
Author

Choose a reason for hiding this comment

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

I didn't find the c-*** color for that gray

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be $c-bg-popup.

removePlayer = (name?: string) => {
if (!name) return;
const previous = this.data.playerName.previous().filter(n => n !== name);
this.data.playerName.previous(previous.slice(0, 20));
Copy link
Collaborator

Choose a reason for hiding this comment

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

slice is not useful here

@shermansiu
Copy link
Contributor

@DrSteinbot Please implement ornicar's fixes or let us know if you're unavailable to work on this fix at the moment.

@M-DinhHoangViet
Copy link
Contributor

Or set as in progress (draft)

@shermansiu
Copy link
Contributor

shermansiu commented Aug 28, 2023

I decided to test out the fix... When there are multiple names, the buttons (both the blue squares and the delete buttons) to the right of the removed name are no longer aligned to the actual names (they reflect the original order instead).

(To fix, set the vnode key to the name of the player)

@DrSteinbot DrSteinbot marked this pull request as draft August 29, 2023 00:11
@shermansiu
Copy link
Contributor

@DrSteinbot, I've had a working version of this fix, with ornicar's comments addressed, on my computer for several days. Would you mind if I opened up a new pull request for this?

@DrSteinbot
Copy link
Author

No not at all, though I was looking forward to continuing development tomorrow after being away from my dev machine for 3 weeks, if you already have a working version submit it

@shermansiu
Copy link
Contributor

Awesome. I'll submit it.

@DrSteinbot
Copy link
Author

closing in favor of #13518

@DrSteinbot DrSteinbot closed this Sep 5, 2023
@DrSteinbot DrSteinbot deleted the RemoveSearchedByUsername branch September 5, 2023 19:32
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.

4 participants