Skip to content
Snippets Groups Projects
Commit 61a0c3e7 authored by Max Väistö's avatar Max Väistö
Browse files

Revorked right layout

parent 95141240
No related branches found
No related tags found
No related merge requests found
...@@ -46,3 +46,32 @@ html, body { ...@@ -46,3 +46,32 @@ html, body {
.dark_plot{ .dark_plot{
background-color: black; background-color: black;
} }
/* Track rgb(197,195,192) */
div.scrollable::-webkit-scrollbar {
width: 6px; /* width of the vertical scrollbar */
border-radius: 6px;
}
div.scrollable::-webkit-scrollbar-track {
margin-top: 20px;
margin-bottom: 20px;
}
div.scrollable::-webkit-scrollbar-thumb {
background-color: rgb(235, 235, 235);
border-right: none;
border-left: none;
border-radius: 6px;
}
div.scrollable::-webkit-scrollbar-track-piece:end {
background: rgb(37,55,77);
margin-bottom: 10px;
}
div.scrollable::-webkit-scrollbar-track-piece:start {
background: rgb(37,55,77);
margin-top: 10px;
}
\ No newline at end of file
This diff is collapsed.
...@@ -94,7 +94,29 @@ def replace_owner_number_with_symbol_real_numeric(value): ...@@ -94,7 +94,29 @@ def replace_owner_number_with_symbol_real_numeric(value):
return value_str return value_str
def round_to_three_largest_digits(number, accuracy = 2): def update_dots(n):
round_val = -(len(str(round(number)))-accuracy) num_dots = (n % 10) + 1
return_val = round(round(number), min(round_val,0)) dots = "." * num_dots
return [dots]
def convert_to_numeric_str(value, **kwargs):
return replace_owner_number_with_symbol_real_numeric(round_to_three_largest_digits(value, **kwargs))
def label_with_rev(label, rev, space, char=".", currency_symbol=""):
processed_rev = convert_to_numeric_str(int(rev))
return_val = label_with_text(label, "".join([currency_symbol, processed_rev]), space, char)
return return_val
def label_with_text(first_str, second_str, space, char="."):
white_space_filler = char * (space - (len(first_str) + len(second_str)) - 2)
return_val = " ".join([first_str, white_space_filler, second_str])
return return_val
def round_to_three_largest_digits(number, accuracy=2):
round_val = -(len(str(round(number))) - accuracy)
return_val = round(round(number), min(round_val, 0))
return return_val return return_val
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment