File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,8 +235,6 @@ def on_mount(self) -> None:
235235 # disable scrollbars
236236 self .show_horizontal_scrollbar = False
237237 self .show_vertical_scrollbar = False
238- # update ui
239- self .query_one (StateManager ).pad_fix ()
240238 # for show keys
241239 if self ._show_keys :
242240 label = Label ("" , id = "showKeys" )
Original file line number Diff line number Diff line change 1- import contextlib
21from contextlib import suppress
32from os import path
43from typing import Literal , TypedDict
@@ -91,14 +90,6 @@ def _load_state(self) -> None:
9190 self ._create_default_state ()
9291 self ._is_loading = False
9392
94- def pad_fix (self ) -> None :
95- # do a minor fix for padding
96- with contextlib .suppress (NoMatches ):
97- if not (self .footer_visible or self .menuwrapper_visible ):
98- self .app .query_one ("#main" ).add_class ("-fix-pad" )
99- else :
100- self .app .query_one ("#main" ).remove_class ("-fix-pad" )
101-
10293 def _create_default_state (self ) -> None :
10394 self .pinned_sidebar_visible = True
10495 self .preview_sidebar_visible = True
@@ -128,7 +119,6 @@ def _save_state(self, force: bool = False) -> None:
128119 f"Attempted to write state file, but { type (exc ).__name__ } occurred\n { exc } " ,
129120 severity = "error" ,
130121 )
131- self .pad_fix ()
132122
133123 def watch_pinned_sidebar_visible (self , visible : bool ) -> None :
134124 if self ._is_loading :
Original file line number Diff line number Diff line change @@ -107,10 +107,6 @@ SortOrderPopup,
107107.hide,
108108.hidden { display: none }
109109
110- #main.-fix-pad {
111- margin: 0 1
112- }
113-
114110Input, TextArea {
115111 .input--placeholder,
116112 .text-area--placeholder { color: $foreground-darken-1 }
@@ -173,7 +169,6 @@ Tooltip {
173169}
174170
175171#headerArea {
176- padding: 0 1 0 1;
177172 #newTabRight {
178173 width: 1fr;
179174 Button {
@@ -253,7 +248,6 @@ Tooltip {
253248}
254249
255250#menuwrapper {
256- margin: 0 1;
257251 #below_menu { border-top: $border-style $border-blurred }
258252 &:focus-within #below_menu { border-top: $border-style $border }
259253}
@@ -326,8 +320,6 @@ Tooltip {
326320 padding: 0 0;
327321 height: 1fr;
328322 align: center middle;
329- /* I legit have no clue why there is a random right padding and i cant get rid of it, so compensation with a left padding */
330- margin: 0 0 0 1;
331323}
332324
333325#file_list_container {
@@ -413,7 +405,6 @@ Tooltip {
413405
414406#footer {
415407 height: $footer_unfocus_height;
416- margin: 0 1;
417408
418409 & > * {
419410 height: 1fr;
You can’t perform that action at this time.
0 commit comments