Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix side panel top and bottom empty space #2795

Merged
merged 2 commits into from
Nov 16, 2024
Merged

Conversation

jevenski
Copy link
Contributor

Side panel comparison v4.3 (left) vs v 5.1 (right)
Minor issues with MaterialDesign and Oblivion

  • MaterialDesign

MaterialDesign5

  • Oblivion

Oblivion3

Originally posted by @koblack in #2721 (comment)

After - Empty spaces are now gone:

  • Oblivion:
    20241115193540
  • MaterialDesign:
    20241115193646

With the aim of fixing empty spaces above/below the panel list in Oblivion and MaterialDesign themes, this patch also simplifies the DOM structure of the side panel, and replaces part of hard-coded color schemes with CSS variables.

  • Simplify DOM structure of the offcanvas side panel, reducing a previously redundant level of <div>.
  • Fix extra white spaces existing above and below the side panel list in some themes such as Oblivion.
  • Define container background color and border color using variables, which are applied to the top menu, the side panel, and the list table.

- Simplify DOM structure of the offcanvas side panel, reducing
  a previously redundant level of `<div>`.
- Fix extra white spaces existing above and below the side panel
  list in some themes such as Oblivion.
- Define container background color and border color using variables,
  which are applied to the top menu, the side panel, and the list
  table.
Comment on lines +140 to +176
<div class="p-1 p-md-0 offcanvas-body">
<template id="panel-label-template">
<link href="./css/panel-label.css?v=51B4" rel="stylesheet" type="text/css" />
<div part="prefix" hidden></div>
<div part="icon"></div>
<div part="text"></div>
<div part="count">0</div>
<div part="size" style="display: none;"></div>
</template>
<template id="category-panel-template">
<link href="./css/category-panel.css?v=51B4" rel="stylesheet" type="text/css" />
<div part="heading">
<span class="text"></span><slot name="decorator" class="decorator"></slot>
</div>
<slot name="content"></slot>
</template>
<category-list id="CatList">
<category-panel id="pview" uilangtext="pnlViews">
<input slot="decorator" class="Button" type="button" value="+" uilangtitle="SaveCurrentView" id="pview_save_view_button" />
<panel-label id="pview_all" icon="all" uilangtext="All" selected></panel-label>
</category-panel>
<category-panel id="pstate" uilangtext="pnlState">
<panel-label id="pstate_all" icon="all" uilangtext="All" selected></panel-label>
<panel-label id="-_-_-dls-_-_-" icon="down" uilangtext="Downloading"></panel-label>
<panel-label id="-_-_-com-_-_-" icon="completed" uilangtext="Finished"></panel-label>
<panel-label id="-_-_-act-_-_-" icon="up-down" uilangtext="Active"></panel-label>
<panel-label id="-_-_-iac-_-_-" icon="inactive" uilangtext="Inactive"></panel-label>
<panel-label id="-_-_-err-_-_-" icon="error" uilangtext="Error"></panel-label>
</category-panel>
<category-panel id="plabel" uilangtext="Labels">
<panel-label id="plabel_all" icon="all" uilangtext="All" selected></panel-label>
<panel-label id="-_-_-nlb-_-_-" icon="no-label" uilangtext="No_label"></panel-label>
</category-panel>
<category-panel id="psearch" uilangtext="mnu_search">
<panel-label id="psearch_all" icon="all" uilangtext="All" selected></panel-label>
</category-panel>
</category-list>
Copy link
Contributor Author

@jevenski jevenski Nov 15, 2024

Choose a reason for hiding this comment

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

Other than reducing one tab indent because of the removal of the redundant level of <div>, these lines are unchanged. Also some verbose bootstrap utility class names were removed from the .offcanvas-body element.

@koblack
Copy link
Contributor

koblack commented Nov 15, 2024

Background below the side panel list is different desktop and mobile.

mobile (left) desktop (right)

Standard
image

Acid
image

Blue
image

DarkBetter
image

Excel
image

MaterialDesign
image

Oblivion
image

@koblack
Copy link
Contributor

koblack commented Nov 16, 2024

Looks great!

mobile (left) desktop (right)

Standard
image

Acid
image

Blue
image

DarkBetter
image

Excel
image

MaterialDesign
image

Oblivion
image

@stickz stickz merged commit 5885bbf into Novik:master Nov 16, 2024
@jevenski jevenski deleted the side-panel branch November 16, 2024 21:57
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.

3 participants