Container Icon in one of the corner
Is there any way to display icon in corner with lower gap than it's by default
@ppalka-lingaro did you want it on the corner? like this?
Yes top left , This time, next time Maybe top right Or Maybe outside of the box.
PS. This is my other account.
Outside the box, there are keywords for that.
Maybe we should add the following keywords:
border-x for x in every position keyword value.
Low priority, but I'll keep this open as a post-1.0 feature
How about image in corner?
on similar note is there a way to force engine to align all containers on same level ? I have tried to use width: 200, height: 700 but only a little better
@ppalka-lingaro that is not a similar note. please don't hijack this issue. create a new issue if one does not fit.
i just realized this is your own lol. Still applies though, let's keep issues focused on one thing
you can position icons with x.icon.near: top-left
https://play.d2lang.com/?script=fFbLbqQwELzzFf6BgTt7293LSrtaKZpb5APxeCZIgJHtySXKv0fGJNNPLom6ugoK2tWDK48yLj725r0x5re_Dvcpt9sL7k15PIDu_5vGmP_3nMaLP4f1r79-85-L4AdpWkT_5ZfsoyqobSx5Ku9dVWxdCzyVe57DKgv2psX0f-PlMnldUftE9DPkHGZdVPvQ2WZVtfbVtURwZA4QqOzIHiBAfxXRB_roWyo6GitkMOHBcAFhc_ln0Y8c6llIFp2RLhJIjnATuKnvXjX0aFsiObAFCVSmmwN94E8dKW1bIjnwR-cJUd0fnSbZILiUVgYFhB1BamEp4FLcAgwRY88QKeekloPNITnJHJKjyxAlqwImh5NDPI2oEuJHap43XIoBo4CcKA6JEWKImBkKyCHhkJgKhjQfTbN_ytSf33Eebr7dvgr6WhTQhaUtf3rzmvOa-q4rVWqzj3FIOd5dbl2YO5-SX_I4TKnL4-zb9HYTgrZdrnyS9CbUzimH9TQpqVPoTougwo9KHgV6cVI0Yjg1PvUDkqpJXtTYCorNP3YFM6wqqC8YaFXEnIETKYgqnUwQHVBdRP3B86qrorwEgAAcKboKCMspC4HQoroWALFeC98YLQfOdfqK4OSoLgrAxeMQ1gXnOn1pcHLcV8dnAAAA__8%3D&
another example of where being on the border is cool. i think we should make this an option.
Maybe to further achieve this effect the icon needs to also allow nested values of shape and fill.
something like
model: {
...
icon: https://something.com/x.png {
near: border-top-center
shape: circle
style.fill: blue
}
}