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

Вложенные блоки отображаются неверно #89

Open
lgadina opened this issue Aug 6, 2023 · 1 comment
Open

Comments

@lgadina
Copy link

lgadina commented Aug 6, 2023

В хроме/яндексбраузере
image

код:

M_GRID(
      M_BLOCK_THIN_TAB(
          "Котел",
          M_BLOCK_THIN_TAB(
              "Отопление",
              M_BOX(GP.LABEL("Темп. прямой"); GP.LABEL("30", "t_in"););
              M_BOX(GP.LABEL("Темп. обратн"); GP.LABEL("22", "t_out");););
          M_BLOCK_THIN_TAB(
              "Горячая вода",
              M_BOX(GP.LABEL("Темп. хол."); GP.LABEL("23", "t_cold"););
              M_BOX(GP.LABEL("Темп. гор."); GP.LABEL("24", "t_hot");););
          M_BOX(GP.LABEL("Нагрев вкл"); GP.LED("boilerOn", false););););
  M_GRID(
      M_BLOCK_THIN_TAB(
          "UPS",
          M_BOX(GP.LABEL("Вход"); GP.NUMBER("v_in", "", 221););
          M_BOX(GP.LABEL("Выход"); GP.NUMBER("v_out", "", 220););););
@XRay3D
Copy link

XRay3D commented Sep 21, 2023

В стиле

#grid .block {
  width: 100%;  <= заменить
  flex: auto;   <= на это
  margin: 10px;
}

и в начало добавить

* {
  box-sizing: border-box;
}

https://github.com/XRay3D/GyverPortal/blob/dev/Test/DARK.css

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

No branches or pull requests

2 participants