Skip to content

a small bug #58

Open
Open
@JetaimeCat

Description

Hello, I found that after clicking the "Show Contacts" button after the page is zoomed out, directly zooming in on the page will result in incomplete display on the right side.
I added some code in js myself, but it doesn't feel very good.

// detect page size, modify page display content
window.onresize = function () {
    function watchChangeSize() {
        let offsetWid = document.documentElement.clientWidth;
        let offsetHei = document.documentElement.clientHeight;
        return [offsetWid, offsetHei];
    }

    let size = watchChangeSize();
    if (size[0] >= 1230) {
        sidebar.classList.remove("active");
    } else {
        sidebar.classList.add("active");
    }
}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions