ondras / wwwsqldesigner

WWW SQL Designer, your online SQL diagramming tool
https://sql.toad.cz/?keyword=online_library
BSD 3-Clause "New" or "Revised" License
2.86k stars 722 forks source link

Larger #area to let user zoom out #293

Open v2lrf opened 4 years ago

v2lrf commented 4 years ago

can't have permission to push branch

in order to let user zoom out and keep png background when he has large DB

I do not have any large background with tecno used inside this repo so i have some issues to make it running local, and i was wondering if it could be possible for one of you to fix that little css and update it on www ?

/* inside /styles/material-inspired.css*/
#area {
        position: relative;
        background: transparent url(../images/back_dim.png);
        width: 3000px;
        height: 3000px;
        opacity: 0.7;
 }
/* to*/
#area {
        position: relative;
        background: transparent url(../images/back_dim.png);
        width: 100%;
        height: 100%;
        opacity: 0.7;
 }

and

/* inside /styles/original.css*/
#area {
        position: relative;
        background: transparent url(../images/back.png);
        width: 3000px;
        height: 3000px;
 }
/* to*/
 #area {
        position: relative;
        background: transparent url(../images/back.png);
        width: 100%;
        height: 100%;
 }
ondras commented 4 years ago

Hi @v2lrf , sorry for the delay.

What exactly is your goal here? I tried adjusting the size as suggested and it broke the app in an expected way: the #area is now smaller, so when you scroll around (you can, because the SVG canvas is still 3000x3000), you have ugly white background (and not the proper background raster).

It might be better to describe a problem you are encountering, instead of suggesting a way to fix it. I believe we would be able to figure something out, provided we have a proper understanding of the issue you ran into.