vitogit / vue-chessboard

Chessboard vue component to load positions, create positions and see threats
http://vitomd.com/vue-chessboard-examples/
GNU General Public License v3.0
165 stars 49 forks source link

Size of the chessboard? #6

Closed ldh243 closed 5 years ago

ldh243 commented 5 years ago

Hi guy, thank you for this chess board.

I have a problem. How can I change width and height of the chess board.

I tried to change by css but it didn't work because distance of the chess is fixed 40px.

Sorry for my worst english

ldh243 commented 5 years ago

Thank you. I find out the way to change size. I forgot clear cache when loading page.

jersobh commented 5 years ago

how did you changed the size?

ldh243 commented 5 years ago

how did you changed the size?

I just override css width & height of the chessboard.

Remember to refresh page. Library will load position of any chessman, length of step,...

I didnt load page so I had this problem.

Matthew-Nicholson commented 3 years ago

I'm having this problem as well. How exactly do you change the size of the board from it's default 320 pixels? It's not responding to CSS and I'm not seeing any available props.

Edit: Actually, this is probably a problem on my end. I think scoped CSS breaks this component.